diff options
| author | JosJuice <josjuice@gmail.com> | 2019-09-28 18:28:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-28 18:28:08 +0200 |
| commit | 9d648904edc0bb556ef964ddb410ffae881acf84 (patch) | |
| tree | 41b237c23ab0b0bddda620d2c9761c6f5e302cb9 /Source/Core/Common/Logging | |
| parent | e28fccffe4cc2b1fa394ce44e3550e3b6dd6ff48 (diff) | |
| parent | eab086b880482e65cce967b0829f397aaed05806 (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.cpp | 3 |
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()); } |
