From: Bruno Haible Date: Fri, 19 Jul 2024 00:02:36 +0000 (+0200) Subject: lang-tcl: Avoid FAIL on native Windows. X-Git-Tag: v0.23~244 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b8c82eb9e7026c5cc35993559e8f7c96f546ce2;p=thirdparty%2Fgettext.git lang-tcl: Avoid FAIL on native Windows. * gettext-tools/tests/lang-tcl: Unset LC_ALL, LC_MESSAGES, LC_CTYPE instead of setting them to empty. --- diff --git a/gettext-tools/tests/lang-tcl b/gettext-tools/tests/lang-tcl index 1d7578834..ffe459002 100755 --- a/gettext-tools/tests/lang-tcl +++ b/gettext-tools/tests/lang-tcl @@ -86,17 +86,24 @@ cat <<\EOF > prog.oku EUR remplace FF. EOF +# Unset environment variables, so that LANG becomes effective. +# (tclsh on native Windows complains if we set LC_MESSAGES or LC_CTYPE +# to the empty string.) +unset LC_ALL +unset LC_MESSAGES +unset LC_CTYPE + : ${LOCALE_FR=fr_FR} : ${LOCALE_FR_UTF8=fr_FR.UTF-8} if test $LOCALE_FR != none; then prepare_locale_ fr $LOCALE_FR - LANGUAGE= LANG=$LOCALE_FR LC_MESSAGES= LC_CTYPE= LC_ALL= tclsh program.tcl > prog.tmp || Exit 1 + LANGUAGE= LANG=$LOCALE_FR tclsh program.tcl > prog.tmp || Exit 1 LC_ALL=C tr -d '\r' < prog.tmp > prog.out || Exit 1 ${DIFF} prog.ok prog.out || Exit 1 fi if test $LOCALE_FR_UTF8 != none; then prepare_locale_ fr $LOCALE_FR_UTF8 - LANGUAGE= LANG=$LOCALE_FR_UTF8 LC_MESSAGES= LC_CTYPE= LC_ALL= tclsh program.tcl > prog.tmp || Exit 1 + LANGUAGE= LANG=$LOCALE_FR_UTF8 tclsh program.tcl > prog.tmp || Exit 1 LC_ALL=C tr -d '\r' < prog.tmp > prog.out || Exit 1 ${DIFF} prog.oku prog.out || Exit 1 fi