https://bugs.winehq.org/show_bug.cgi?id=39297
--- Comment #26 from Hin-Tak Leung htl10@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.