2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #7890 from Morph1984/utf8-console

debugger: console: Set console output codepage to UTF-8
This commit is contained in:
Mai M 2022-02-13 19:54:05 -05:00 committed by GitHub
commit 45bcd7f9b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,7 @@ void ToggleConsole() {
freopen_s(&temp, "CONIN$", "r", stdin); freopen_s(&temp, "CONIN$", "r", stdin);
freopen_s(&temp, "CONOUT$", "w", stdout); freopen_s(&temp, "CONOUT$", "w", stdout);
freopen_s(&temp, "CONOUT$", "w", stderr); freopen_s(&temp, "CONOUT$", "w", stderr);
SetConsoleOutputCP(65001);
SetColorConsoleBackendEnabled(true); SetColorConsoleBackendEnabled(true);
} }
} else { } else {