[vlc-commits] commit: Assume UTF-8 operating system by default ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Sun Jul 18 11:18:18 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 18 12:14:09 2010 +0300| [24a1b306aa45ad2f0f1d4011e9bfed43c2eb9f59] | committer: Rémi Denis-Courmont
Assume UTF-8 operating system by default
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=24a1b306aa45ad2f0f1d4011e9bfed43c2eb9f59
---
NEWS | 5 +++++
configure.ac | 13 +++++++++++++
src/text/unicode.c | 5 -----
3 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/NEWS b/NEWS
index 22dc568..fbc45cf 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,11 @@
Changes between 1.1.0 and 1.2.0-git:
------------------------------------
+Important changes for packagers:
+ * The default builds now assume that the operating system uses UTF-8 for
+ its file systems and files content (except the Windows port). If this is
+ not acceptable, pass --enable-non-utf8 to the configure script.
+
Access
* Multiple files are supported from RAR files
diff --git a/configure.ac b/configure.ac
index 3aad1b0..d375cf3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -910,6 +910,19 @@ fi
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="no"
+ ])
+])
+AS_IF([test "${enable_non_utf8}" != "no"], [
+ AC_DEFINE([ASSUME_UTF8], [1],
+ [Define to 1 if the operating system uses UTF-8 internally])
+])
+
+
dnl Check for dbus
AC_ARG_ENABLE(dbus,
[ --enable-dbus Linux D-BUS message bus system (default enabled)])
diff --git a/src/text/unicode.c b/src/text/unicode.c
index 12d0ae9..bb1ec6b 100644
--- a/src/text/unicode.c
+++ b/src/text/unicode.c
@@ -42,11 +42,6 @@
#endif
#include <errno.h>
-#if defined (__APPLE__) || defined (HAVE_MAEMO)
-/* Define this if the OS always use UTF-8 internally */
-# define ASSUME_UTF8 1
-#endif
-
#if defined (ASSUME_UTF8)
/* Cool */
More information about the vlc-commits
mailing list