From 7877d1d13f5f2f67b3d062603cb82791fc479257 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Wed, 17 Mar 2010 22:44:25 +0100 Subject: [PATCH] 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 and Xiaofan Chen . Signed-off-by: Ralf Wildenhues --- ChangeLog | 10 ++++++++++ libltdl/config/ltmain.m4sh | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5c36a742..c0447e57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2010-03-19 Ralf Wildenhues + + 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 and Xiaofan Chen + . + 2010-03-17 Peter Rosin Preserve the last error when restoring the error mode. diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 8fcedc91..c7af229c 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -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