Skip to content

Commit

Permalink
ConsoleListenerWin: Properly output console logging in UTF-16 so UTF-…
Browse files Browse the repository at this point in the history
…8 displays properly
  • Loading branch information
CookiePLMonster committed Aug 30, 2019
1 parent 5ea4f99 commit eab086b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/Common/Logging/ConsoleListenerWin.cpp
Expand Up @@ -5,6 +5,7 @@
#include <windows.h> #include <windows.h>


#include "Common/Logging/ConsoleListener.h" #include "Common/Logging/ConsoleListener.h"
#include "Common/StringUtil.h"


ConsoleListener::ConsoleListener() ConsoleListener::ConsoleListener()
{ {
Expand All @@ -16,5 +17,5 @@ ConsoleListener::~ConsoleListener()


void ConsoleListener::Log(LogTypes::LOG_LEVELS level, const char* text) void ConsoleListener::Log(LogTypes::LOG_LEVELS level, const char* text)
{ {
::OutputDebugStringA(text); ::OutputDebugStringW(UTF8ToUTF16(text).c_str());
} }

0 comments on commit eab086b

Please sign in to comment.