X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fencoding.c;h=aa8f9281d0e3bea3e46cb83d1d4ebfb00cb4d9d2;hp=980e4cfcac00f5b2d3855346eb01d14370d3a147;hb=00334bdf09071e65e340eeeb6f3900c79a262649;hpb=687d07120a2d543f02bffe88efdf9583fbab1459 diff --git a/src/encoding.c b/src/encoding.c index 980e4cfc..aa8f9281 100644 --- a/src/encoding.c +++ b/src/encoding.c @@ -30,8 +30,9 @@ #include #include +#include -bool wimlib_mbs_is_utf8 = false; +bool wimlib_mbs_is_utf8 = true; struct iconv_list_head { const char *from_encoding; @@ -256,7 +257,7 @@ utf8_str_contains_nonascii_chars(const utf8char *utf8_str) { do { if ((unsigned char)*utf8_str > 127) - return false; + return true; } while (*++utf8_str); - return true; + return false; }