summaryrefslogtreecommitdiff
path: root/libtool-nls.diff
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-04-19 13:26:31 +0100
committerPete Batard <pbatard@gmail.com>2010-04-19 13:26:31 +0100
commitb7c99f781f34103174b368dd22502b56c572be0c (patch)
tree1f7104e6319928c3045ad44cbce5259b0dffad92 /libtool-nls.diff
parent63edc0276d5f3fb2975954c33f14d2b995257b0e (diff)
downloadlibusb-b7c99f781f34103174b368dd22502b56c572be0c.tar.gz
added official libtool NLS patch for Chinese localer265
Diffstat (limited to 'libtool-nls.diff')
-rw-r--r--libtool-nls.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/libtool-nls.diff b/libtool-nls.diff
new file mode 100644
index 0000000..d41b733
--- /dev/null
+++ b/libtool-nls.diff
@@ -0,0 +1,22 @@
+--- a/ltmain.sh
++++ b/ltmain.sh
+@@ -105,9 +105,6 @@ _LTECHO_EOF'
+ }
+
+ # NLS nuisances: We save the old values to restore during execute mode.
+-# Only set LANG and LC_ALL to C if already set.
+-# These must not be set unconditionally because not all systems understand
+-# e.g. LANG=C (notably SCO).
+ lt_user_locale=
+ lt_safe_locale=
+ for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+@@ -120,6 +117,9 @@ do
+ lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
+ fi"
+ done
++LC_ALL=C
++LANGUAGE=C
++export LANGUAGE LC_ALL
+
+ $lt_unset CDPATH
+