Skip to content

Commit

Permalink
Revert default string encoding setting to UTF-8 (breaks many tests).
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Feb 9, 2025
1 parent 2ee3ad2 commit 7eb80f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion librz/core/cconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 7eb80f9

Please sign in to comment.