summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-08-11 22:58:04 -0700
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-08-11 22:58:04 -0700
commitb384e35959a17fc5b85655184534b96add5904b5 (patch)
treea6fd8db43ce02f40e555ef3c8d4cd391d215bb07 /src
parent99992fdf4c09b6ee582874b6b563a2c242498640 (diff)
Win32's console to utf-8.
Diffstat (limited to 'src')
-rw-r--r--src/Main.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Main.cc b/src/Main.cc
index aa3fd3e..89572af 100644
--- a/src/Main.cc
+++ b/src/Main.cc
@@ -206,6 +206,10 @@ extern "C" {
int BALAU_MAIN(int argc, char ** argv) {
setlocale(LC_ALL, "");
+#ifdef _WIN32
+ SetConsoleCP(65001);
+ SetConsoleOutputCP(65001);
+#endif
Balau::Main mainClass;
return mainClass.bootstrap(argc, argv);
}