]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
lang-clisp: Avoid FAIL on NetBSD.
authorBruno Haible <bruno@clisp.org>
Fri, 19 Jul 2024 03:28:23 +0000 (05:28 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 19 Jul 2024 03:35:26 +0000 (05:35 +0200)
* gettext-tools/tests/lang-clisp: Unset CLISP_LANGUAGE, LANGUAGE instead of
setting them to empty.

gettext-tools/tests/lang-clisp

index 471c4f6c8c4b39ef743ae1406b6c74c3e5ecbab2..0c3a492742c63bd812cfb7a690391a5e7430bf51 100755 (executable)
@@ -132,17 +132,23 @@ cat <<\EOF > prog.oku
 EUR remplace FF.
 EOF
 
+# Unset environment variables, so that LC_ALL becomes effective.
+# (clisp that uses the *gettext functions in NetBSD libc does not work right
+# if we set LANGUAGE to the empty string.)
+unset CLISP_LANGUAGE
+unset LANGUAGE
+
 : ${LOCALE_FR=fr_FR}
 : ${LOCALE_FR_UTF8=fr_FR.UTF-8}
 if test $LOCALE_FR != none; then
   prepare_locale_ fr $LOCALE_FR
-  CLISP_LANGUAGE= LANGUAGE= LC_ALL=$LOCALE_FR clisp prog.lisp 2 > prog.tmp || Exit 1
+  LC_ALL=$LOCALE_FR clisp prog.lisp 2 > 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
-  CLISP_LANGUAGE= LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 clisp prog.lisp 2 > prog.tmp || Exit 1
+  LC_ALL=$LOCALE_FR_UTF8 clisp prog.lisp 2 > prog.tmp || Exit 1
   LC_ALL=C tr -d '\r' < prog.tmp > prog.out || Exit 1
   ${DIFF} prog.oku prog.out || Exit 1
 fi