mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
Convert OSREPORT text from SJIS to UTF-8
I'm not sure this is the correct fix, but it looks like OSREPORT output is Shift-JIS, so we need to convert it to UTF-8. Most characters work fine without and with this conversion, but Japanese text completely fails and results in outputting invalid UTF-8 (which gets shown as �).
This commit is contained in:
parent
4c9c456846
commit
c0be228c71
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
||||||
#include "Common/FileUtil.h"
|
#include "Common/FileUtil.h"
|
||||||
#include "Common/Logging/Log.h"
|
#include "Common/Logging/Log.h"
|
||||||
#include "Common/MemoryUtil.h"
|
#include "Common/MemoryUtil.h"
|
||||||
|
#include "Common/StringUtil.h"
|
||||||
#include "Common/Timer.h"
|
#include "Common/Timer.h"
|
||||||
#include "Core/ConfigManager.h"
|
#include "Core/ConfigManager.h"
|
||||||
#include "Core/Core.h"
|
#include "Core/Core.h"
|
||||||
|
@ -340,7 +341,7 @@ void CEXIIPL::TransferByte(u8& _uByte)
|
||||||
|
|
||||||
if (_uByte == '\r')
|
if (_uByte == '\r')
|
||||||
{
|
{
|
||||||
NOTICE_LOG(OSREPORT, "%s", m_buffer.c_str());
|
NOTICE_LOG(OSREPORT, "%s", SHIFTJISToUTF8(m_buffer).c_str());
|
||||||
m_buffer.clear();
|
m_buffer.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue