mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-10 16:23:08 +00:00
parent
31d6b5764a
commit
4716e50572
@ -1465,10 +1465,13 @@ R_API void r_cons_set_utf8(bool b) {
|
||||
r_sys_perror ("r_cons_set_utf8");
|
||||
}
|
||||
#if UNICODE
|
||||
if (!SetConsoleCP (CP_UTF8)) {
|
||||
UINT inCP = CP_UTF8;
|
||||
#else
|
||||
UINT inCP = GetACP ();
|
||||
#endif
|
||||
if (!SetConsoleCP (inCP)) {
|
||||
r_sys_perror ("r_cons_set_utf8");
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
R_LOG_WARN ("UTF-8 Codepage not installed.\n");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user