]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
lang-tcl: Avoid FAIL on native Windows.
authorBruno Haible <bruno@clisp.org>
Fri, 19 Jul 2024 00:02:36 +0000 (02:02 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 19 Jul 2024 00:02:36 +0000 (02:02 +0200)
* gettext-tools/tests/lang-tcl: Unset LC_ALL, LC_MESSAGES, LC_CTYPE instead of
setting them to empty.

gettext-tools/tests/lang-tcl

index 1d7578834061c02ff45df79beb1e8c0d90dd9ea2..ffe459002ad063260e6ef5a8b33c78de01466fa6 100755 (executable)
@@ -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