Mst::loadMST(): Convert the string table name from Shift-JIS to UTF-8.

This commit is contained in:
David Korth 2019-05-11 15:11:35 -04:00
parent 8cf572184a
commit 4f7df957eb

View File

@ -240,9 +240,8 @@ int Mst::loadMST(const TCHAR *filename)
break; break;
} }
// TODO: Convert from Shift-JIS to UTF-8.
size_t msgNameLen = strnlen(pMsgName, reinterpret_cast<const char*>(pDiffTblEnd) - pMsgName); size_t msgNameLen = strnlen(pMsgName, reinterpret_cast<const char*>(pDiffTblEnd) - pMsgName);
m_name = string(pMsgName, msgNameLen); m_name = cpN_to_utf8(932, pMsgName, static_cast<int>(msgNameLen));
} while (0); } while (0);
// Temporary string for text. // Temporary string for text.