- Use the Unicode RichEdit control instead of the MBCS version, so as to enforce the use
of code page 1252 for output text. This is noticeable, for example, with the FMOD copyright notice where the copyright symbol appears as ゥ (halfwidth katakana small U) with code page 932. SVN r2177 (trunk)
This commit is contained in:
parent
ad54cfcf94
commit
0b2c2e1cb3
2 changed files with 8 additions and 5 deletions
|
|
@ -944,7 +944,10 @@ void I_PrintStr(const char *cp)
|
|||
buf[bpos] = 0;
|
||||
if (edit != NULL)
|
||||
{
|
||||
SendMessage(edit, EM_REPLACESEL, FALSE, (LPARAM)buf);
|
||||
wchar_t wbuf[countof(buf)];
|
||||
MultiByteToWideChar(1252 /* Latin 1 */, 0, buf, bpos, wbuf, countof(wbuf));
|
||||
wbuf[bpos] = 0;
|
||||
SendMessageW(edit, EM_REPLACESEL, FALSE, (LPARAM)wbuf);
|
||||
}
|
||||
if (StdOut != NULL)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue