[LyX/master] Set correct Windows console code page since all LyX output is in UTF-8
Yuriy Skalko
yuriy.skalko at gmail.com
Fri Mar 12 16:10:23 UTC 2021
commit 4ec5d33551847ca3a4c6aa02b6f3a72bff3a18d4
Author: Yuriy Skalko <yuriy.skalko at gmail.com>
Date: Thu Mar 11 16:19:44 2021 +0200
Set correct Windows console code page since all LyX output is in UTF-8
---
src/main.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/main.cpp b/src/main.cpp
index 94b1ccd..65a9f4d 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
More information about the lyx-cvs
mailing list