Skip to content
Permalink
Browse files

ConsoleListenerWin: Properly output console logging in UTF-16 so UTF-…

…8 displays properly
  • Loading branch information...
CookiePLMonster committed Aug 30, 2019
1 parent 5ea4f99 commit eab086b880482e65cce967b0829f397aaed05806
Showing with 2 additions and 1 deletion.
  1. +2 −1 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());
}

0 comments on commit eab086b

Please sign in to comment.
You can’t perform that action at this time.