scripts: also overide LANG
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Nov 01 16:59:39 2010 +0100 (2010-11-01)
changeset 2171c2541d3f2f56
parent 2170 4f8aa694f9c0
child 2172 62ea71e97806
scripts: also overide LANG

On some systems, we also need to overide LANG as well as LC_ALL.

Reported-by: Geoffrey Lee <geoffl@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/crosstool-NG.sh.in
     1.1 --- a/scripts/crosstool-NG.sh.in	Mon Nov 01 01:12:39 2010 +0100
     1.2 +++ b/scripts/crosstool-NG.sh.in	Mon Nov 01 16:59:39 2010 +0100
     1.3 @@ -26,7 +26,10 @@
     1.4  # Yes! We can do full logging from now on!
     1.5  
     1.6  # Overide the locale early, in case we ever translate crosstool-NG messages
     1.7 -[ -z "${CT_NO_OVERIDE_LC_MESSAGES}" ] && export LC_ALL=C
     1.8 +if [ -z "${CT_NO_OVERIDE_LC_MESSAGES}" ]; then
     1.9 +    export LC_ALL=C
    1.10 +    export LANG=C
    1.11 +fi
    1.12  
    1.13  # remove . from PATH since it can cause gcc build failures
    1.14  CT_SanitizePath