18 Oct
2024
18 Oct
'24
5:07 p.m.
Piotr Caban (@piotr) commented about dlls/msvcp120/tests/msvcp120.c:
} }
+static void test__Fiopen(void) +{ + int i; + FILE *f; + char *oldloc; + static const struct { + const char *loc; + const WCHAR *wpath; + const char *apath; + } tests[] = { + { "C", L"utf_\x00e4\x00cf\x00f6\x00df.txt", "utf_\xe4\xcf\xf6\xdf.txt" }, + { "de_DE", L"utf_\x00e4\x00cf\x00f6\x00df.txt", "utf_\xe4\xcf\xf6\xdf.txt" },
The implementation uses CP_ACP to convert between wchar and char version. You will need to do the same in the tests, otherwise the tests may fail depending on system settings. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6680#note_85479