From 7eb80f9a19398397a832d80fbd1c18ef8ddaad06 Mon Sep 17 00:00:00 2001 From: Rot127 Date: Sun, 9 Feb 2025 10:53:49 -0500 Subject: [PATCH] Revert default string encoding setting to UTF-8 (breaks many tests). --- librz/core/cconfig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/librz/core/cconfig.c b/librz/core/cconfig.c index 4a5cba13ca1..87550af14ca 100644 --- a/librz/core/cconfig.c +++ b/librz/core/cconfig.c @@ -1223,6 +1223,7 @@ static bool find_encoding(RzConfigNode *node, RzStrEnc *encoding) { // Edge case when the node was just initialized but the options // were not added yet. *encoding = rz_str_enc_string_as_type(node->value); + return true; } return false; } @@ -3709,7 +3710,7 @@ RZ_API int rz_core_config_init(RzCore *core) { /* str */ SETCB("str.escbslash", "false", &cb_str_escbslash, "Escape the backslash"); - n = NODECB("str.encoding", "utf8", &cb_str_encoding); + n = NODECB("str.encoding", "guess", &cb_str_encoding); SETDESC(n, "The default string encoding type (when set to guess, it is automatically guessed)."); SETOPTIONS(n, "ascii", "8bit", "utf8", "utf16le", "utf32le", "utf16be", "utf32be", "ibm037", "ibm290", "ebcdices", "ebcdicuk", "ebcdicus", "guess", NULL);