+static bool test_locale_ctype_utf8()
+{
+ char *ctype = nl_langinfo(CODESET);
+
+ return (strstr(ctype, "UTF-8") == 0 ||
+ strstr(ctype, "UTF8") == 0 ||
+ strstr(ctype, "utf8") == 0 ||
+ strstr(ctype, "utf-8") == 0);
+}
+
+bool wimlib_mbs_is_utf8;
+