From: Yuriy Skalko Date: Thu, 11 Mar 2021 14:19:44 +0000 (+0200) Subject: Set correct Windows console code page since all LyX output is in UTF-8 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4ec5d33551847ca3a4c6aa02b6f3a72bff3a18d4;p=features.git Set correct Windows console code page since all LyX output is in UTF-8 --- diff --git a/src/main.cpp b/src/main.cpp index 94b1ccd646..65a9f4d8d7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -40,6 +40,7 @@ int main(int argc, char * argv[]) freopen("CONOUT$", "w", stdout); freopen("CONOUT$", "w", stderr); } + SetConsoleOutputCP(CP_UTF8); #endif // To avoid ordering of global object problems with some