fix comment

Co-authored-by: Jed Fox <git@jedfox.com>
patch-win-utf8
anzz1 3 years ago committed by GitHub
parent f2df89685f
commit 2eb9d043d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -174,7 +174,7 @@ void win32_console_init(void) {
// Set console output codepage to UTF8 // Set console output codepage to UTF8
SetConsoleOutputCP(65001); // CP_UTF8 SetConsoleOutputCP(65001); // CP_UTF8
} }
void* hConIn = GetStdHandle((unsigned long)-10); // STD_INPUT_HANDLE (-11) 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)) {
// Set console input codepage to UTF8 // Set console input codepage to UTF8
SetConsoleCP(65001); // CP_UTF8 SetConsoleCP(65001); // CP_UTF8

Loading…
Cancel
Save