Fix mojibake for error output as well.

This commit is contained in:
Jeroen van Rijn
2026-09-02 16:11:58 +02:00
parent 16ba9e964c
commit 80fc2e5107

View File

@@ -69,6 +69,7 @@ template <> struct TypeIs64BitInteger<i64> { enum {value = true}; };
uint32_t old_console_codepage = 0;
void set_utf8_codepage() {
old_console_codepage = GetConsoleOutputCP();
SetConsoleOutputCP(65001);
}
void restore_old_codepage() {