[Bug 39297] kernel32.IsValidCodePage and friends don't support code page 708.
wine-bugs at winehq.org
wine-bugs at winehq.org
Thu Sep 24 17:47:06 CDT 2015
https://bugs.winehq.org/show_bug.cgi?id=39297
--- Comment #26 from Hin-Tak Leung <htl10 at users.sourceforge.net> ---
Here is the full working version of the test code:
-----------------
#include <wtypes.h>
#include <stdio.h>
int main(void) {
char inputbuf[1];
wchar_t outputbuf[1];
UINT CodePage = 708;
for (unsigned short c = 0; c<256; c++)
{
inputbuf[0] = (char)c;
if (MultiByteToWideChar(CodePage, MB_ERR_INVALID_CHARS, inputbuf, 1,
outputbuf, 1) != 0)
{
printf("0x%02X 0x%04X\n", c, outputbuf[0]);
}
}
return 0;
}
-----------------
You can cross-compile it with:
i686-w64-mingw32-gcc -Wall -o test.exe cp708test.c
then run with
wine test.exe
It just writes the mapping table out as a two-column table.
Change 708 to 1252 to test for code page 1252, etc if you wish.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list