diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2014-08-11 22:58:04 -0700 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2014-08-11 22:58:04 -0700 |
commit | b384e35959a17fc5b85655184534b96add5904b5 (patch) | |
tree | a6fd8db43ce02f40e555ef3c8d4cd391d215bb07 /src | |
parent | 99992fdf4c09b6ee582874b6b563a2c242498640 (diff) |
Win32's console to utf-8.
Diffstat (limited to 'src')
-rw-r--r-- | src/Main.cc | 4 |
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); } |