Merge pull request #8341 from CookiePLMonster/win-utf8-console-output

ConsoleListenerWin: Properly output console logging in UTF-16
This commit is contained in:
JosJuice 2019-09-28 18:28:08 +02:00 committed by GitHub
commit 9d648904ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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