ConsoleListenerWin: Properly output console logging in UTF-16 so UTF-8 displays properly

This commit is contained in:
Silent 2019-08-31 00:44:44 +02:00
parent 5ea4f998c0
commit eab086b880
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1

View File

@ -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());
}