Piotr Caban (@piotr) commented about dlls/msvcr80/tests/msvcr80.c:
test_wdupenv_s();
- winetest_push_context("_MB_CP_SBCS");
- p__setmbcp(_MB_CP_SBCS);
- test__mbsncpy_s();
- winetest_pop_context();
- if (!p__setmbcp(936))
- {
winetest_push_context("CP 936");
test__mbsncpy_s();
winetest_pop_context();
- }
- else
- {
skip("Code page 936 is not available.\n");
- }
You're setting the codepage in `test__mbsncpy_s`.