]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Unconditionally normalize LC_ALL, LANGUAGE in libtool script.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 17 Mar 2010 21:44:25 +0000 (22:44 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 19 Mar 2010 05:24:23 +0000 (06:24 +0100)
* libltdl/config/ltmain.m4sh: Unconditionally set LC_ALL and
LANGUAGE to 'C', to avoid semantic differences on MinGW under
Chines locale.  SCO issues with e.g. LANG=C are not known to
be relevant today any more.
Report by Pete Batard <pbatard@gmail.com> and Xiaofan Chen
<xiaofanc@gmail.com>.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
libltdl/config/ltmain.m4sh

index 5c36a742ba245442e24f38099ba5b8879d61ef14..c0447e57a06a3225e9458a76725b1a911d661ea1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-03-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Unconditionally normalize LC_ALL, LANGUAGE in libtool script.
+       * libltdl/config/ltmain.m4sh: Unconditionally set LC_ALL and
+       LANGUAGE to 'C', to avoid semantic differences on MinGW under
+       Chines locale.  SCO issues with e.g. LANG=C are not known to
+       be relevant today any more.
+       Report by Pete Batard <pbatard@gmail.com> and Xiaofan Chen
+       <xiaofanc@gmail.com>.
+
 2010-03-17  Peter Rosin  <peda@lysator.liu.se>
 
        Preserve the last error when restoring the error mode.
index 8fcedc91b71e1c52eec900f18f7668df4daa0914..c7af229c0fb15ccc0f25708a6ebf288491c147f4 100644 (file)
@@ -106,9 +106,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
@@ -121,6 +118,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