- wimlib_assert(wim->refcnt > 0);
- if (--wim->refcnt == 0)
- finalize_wim_struct(wim);
-}
-
-static bool
-test_locale_ctype_utf8(void)
-{
-#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