Commit 7c39812c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix default for --enable-non-utf8

parent 85a61b6d
......@@ -903,8 +903,8 @@ AM_CONDITIONAL(HAVE_MINIZIP, [ test "${have_minizip}" = "yes" ])
dnl Manual switch for UTF-8
AC_ARG_ENABLE(non-utf8,
[ --enable-non-utf8 Legacy non-UTF-8 systems support (default disabled)], [
AS_IF([test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"], [
[ --enable-non-utf8 Legacy non-UTF-8 systems support (default disabled)],, [
AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"], [
enable_non_utf8="no"
])
])
......
......@@ -173,7 +173,7 @@ char *ToLocale (const char *utf8)
#ifdef ASSUME_UTF8
return (char *)utf8;
#else
return utf8 ? locale_fast (utf8, false) : NULL
return utf8 ? locale_dup (utf8, false) : NULL;
#endif
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment