Re: gdi32: Tests for the codepages supported by TranslateCharsetInfo
Ilya Shpigor <shpigor(a)etersoft.ru> wrote:
+static void test_TranslateCharsetInfo(void) +{ + /* Any other codepages are not supported + * by TranslateCharsetInfo in Windows XP + */ + test_codepage(42, 2); + test_codepage(874, 222); + test_codepage(932, 128); + test_codepage(936, 134); + test_codepage(949, 129); + test_codepage(950, 136); + test_codepage(1250, 238); + test_codepage(1251, 204); + test_codepage(1252, 0); + test_codepage(1253, 161); + test_codepage(1254, 162); + test_codepage(1255, 177); + test_codepage(1256, 178); + test_codepage(1257, 186); + test_codepage(1258, 163); + test_codepage(1361, 130);
It would be better to create a table and run the tests in the loop, use symbolic charset names, and actually test some codepages which would fail. -- Dmitry.
participants (1)
-
Dmitry Timoshkov