summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Logging
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2019-09-28 18:28:08 +0200
committerGitHub <noreply@github.com>2019-09-28 18:28:08 +0200
commit9d648904edc0bb556ef964ddb410ffae881acf84 (patch)
tree41b237c23ab0b0bddda620d2c9761c6f5e302cb9 /Source/Core/Common/Logging
parente28fccffe4cc2b1fa394ce44e3550e3b6dd6ff48 (diff)
parenteab086b880482e65cce967b0829f397aaed05806 (diff)
Merge pull request #8341 from CookiePLMonster/win-utf8-console-output
ConsoleListenerWin: Properly output console logging in UTF-16
Diffstat (limited to 'Source/Core/Common/Logging')
-rw-r--r--Source/Core/Common/Logging/ConsoleListenerWin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Common/Logging/ConsoleListenerWin.cpp b/Source/Core/Common/Logging/ConsoleListenerWin.cpp
index 4dca963757..b28c662bde 100644
--- a/Source/Core/Common/Logging/ConsoleListenerWin.cpp
+++ b/Source/Core/Common/Logging/ConsoleListenerWin.cpp
@@ -5,6 +5,7 @@
#include <windows.h>
#include "Common/Logging/ConsoleListener.h"
+#include "Common/StringUtil.h"
ConsoleListener::ConsoleListener()
{
@@ -16,5 +17,5 @@ ConsoleListener::~ConsoleListener()
void ConsoleListener::Log(LogTypes::LOG_LEVELS level, const char* text)
{
- ::OutputDebugStringA(text);
+ ::OutputDebugStringW(UTF8ToUTF16(text).c_str());
}