summaryrefslogtreecommitdiff
path: root/lib/common/Logging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common/Logging.cpp')
-rw-r--r--lib/common/Logging.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/common/Logging.cpp b/lib/common/Logging.cpp
index 3cd8c219..3edb5ce6 100644
--- a/lib/common/Logging.cpp
+++ b/lib/common/Logging.cpp
@@ -317,7 +317,13 @@ bool Console::Log(Log::Level level, const std::string& rFile,
buf << rMessage;
- fprintf(target, "%s\n", buf.str().c_str());
+ #ifdef WIN32
+ std::string output = buf.str();
+ ConvertUtf8ToConsole(output.c_str(), output);
+ fprintf(target, "%s\n", output.c_str());
+ #else
+ fprintf(target, "%s\n", buf.str().c_str());
+ #endif
return true;
}