[vlc-commits] commit: Fix default for --enable-non-utf8 ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Tue Aug 3 18:21:39 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug  3 19:11:10 2010 +0300| [7c39812c628cd3e26559250f2d4a35e3adcd88f7] | committer: Rémi Denis-Courmont 

Fix default for --enable-non-utf8

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7c39812c628cd3e26559250f2d4a35e3adcd88f7
---

 configure.ac       |    4 ++--
 src/text/unicode.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index cc673ef..e4d1ffb 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 a9c9e95..b9b0c49 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
 }
 



More information about the vlc-commits mailing list