mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-04 03:11:28 +00:00
Temp fix for #8788 - escape non-ascii chars in ESIL strings
This commit is contained in:
parent
ba1f4f9d8f
commit
5c09380650
@ -3108,7 +3108,11 @@ static int myregwrite(RAnalEsil *esil, const char *name, ut64 *val) {
|
||||
str[sizeof (str)-1] = 0;
|
||||
if (*str && r_str_is_printable (str)) {
|
||||
// do nothing
|
||||
msg = r_str_newf ("\"%s\" ", str);
|
||||
char *escstr = r_str_escape_utf8 (str, ds->show_asciidot);
|
||||
if (escstr) {
|
||||
msg = r_str_newf ("\"%s\" ", escstr);
|
||||
free (escstr);
|
||||
}
|
||||
} else {
|
||||
str[0] = 0;
|
||||
if (!*n32) {
|
||||
|
Loading…
Reference in New Issue
Block a user