X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fwim.c;h=9a20cc5756969e2642cc0ba7e01fd6b91756541f;hp=dd184533151e04214ec2c9e2376fec14af1e3ec4;hb=32844c59e618cfaf1999e81e32b5e18fcb13a5b9;hpb=782d531f37b8548e8b28d28bc8e4e07d6be41944 diff --git a/src/wim.c b/src/wim.c index dd184533..9a20cc57 100644 --- a/src/wim.c +++ b/src/wim.c @@ -596,12 +596,16 @@ wimlib_free(WIMStruct *w) static bool test_locale_ctype_utf8() { +#ifdef __WIN32__ + return false; +#else char *ctype = nl_langinfo(CODESET); return (!strstr(ctype, "UTF-8") || !strstr(ctype, "UTF8") || !strstr(ctype, "utf8") || !strstr(ctype, "utf-8")); +#endif } /* Get global memory allocations out of the way,