]> wimlib.net Git - wimlib/blobdiff - src/wim.c
Fix detection of non UTF-8 locales
[wimlib] / src / wim.c
index 79a9ba729e08d48b270b7dd538f946b092ee5cf5..f6d1f3a500374dae8479b5aea672723045932b17 100644 (file)
--- a/src/wim.c
+++ b/src/wim.c
@@ -944,10 +944,10 @@ test_locale_ctype_utf8(void)
 #else
        char *ctype = nl_langinfo(CODESET);
 
-       return (!strstr(ctype, "UTF-8") ||
-               !strstr(ctype, "UTF8") ||
-               !strstr(ctype, "utf8") ||
-               !strstr(ctype, "utf-8"));
+       return (strstr(ctype, "UTF-8") ||
+               strstr(ctype, "UTF8") ||
+               strstr(ctype, "utf8") ||
+               strstr(ctype, "utf-8"));
 #endif
 }