From b384e35959a17fc5b85655184534b96add5904b5 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 11 Aug 2014 22:58:04 -0700 Subject: Win32's console to utf-8. --- src/Main.cc | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- cgit v1.2.3