cleanup
This commit is contained in:
parent
ff21b16ea4
commit
4598aa8ab5
1 changed files with 0 additions and 5 deletions
|
@ -318,13 +318,8 @@ void win32_console_init(bool enable_color) {
|
||||||
}
|
}
|
||||||
void* hConIn = GetStdHandle((unsigned long)-10); // STD_INPUT_HANDLE (-10)
|
void* hConIn = GetStdHandle((unsigned long)-10); // STD_INPUT_HANDLE (-10)
|
||||||
if (hConIn && hConIn != (void*)-1 && GetConsoleMode(hConIn, &dwMode)) {
|
if (hConIn && hConIn != (void*)-1 && GetConsoleMode(hConIn, &dwMode)) {
|
||||||
#if 0
|
|
||||||
// Set console input codepage to UTF8
|
|
||||||
SetConsoleCP(CP_UTF8);
|
|
||||||
#else
|
|
||||||
// Set console input codepage to UTF16
|
// Set console input codepage to UTF16
|
||||||
_setmode(_fileno(stdin), _O_WTEXT);
|
_setmode(_fileno(stdin), _O_WTEXT);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue