From: RĂ©mi Denis-Courmont Date: Tue, 3 Aug 2010 16:11:10 +0000 (+0300) Subject: Fix default for --enable-non-utf8 X-Git-Tag: 1.2.0-pre1~5575 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=7c39812c628cd3e26559250f2d4a35e3adcd88f7;p=vlc Fix default for --enable-non-utf8 --- diff --git a/configure.ac b/configure.ac index cc673ef50b..e4d1ffbec3 100644 --- a/configure.ac +++ b/configure.ac @@ -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" ]) ]) diff --git a/src/text/unicode.c b/src/text/unicode.c index a9c9e9508e..b9b0c49f76 100644 --- a/src/text/unicode.c +++ b/src/text/unicode.c @@ -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 }