]> wimlib.net Git - wimlib/blobdiff - src/wim.c
Win32: Minor code/comment fixes
[wimlib] / src / wim.c
index dd184533151e04214ec2c9e2376fec14af1e3ec4..9a20cc5756969e2642cc0ba7e01fd6b91756541f 100644 (file)
--- 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,