From: Bruno Haible Date: Fri, 19 Jul 2024 03:28:23 +0000 (+0200) Subject: lang-clisp: Avoid FAIL on NetBSD. X-Git-Tag: v0.23~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a913326be423b6ef7a6601312e8dca19efbc162f;p=thirdparty%2Fgettext.git lang-clisp: Avoid FAIL on NetBSD. * gettext-tools/tests/lang-clisp: Unset CLISP_LANGUAGE, LANGUAGE instead of setting them to empty. --- diff --git a/gettext-tools/tests/lang-clisp b/gettext-tools/tests/lang-clisp index 471c4f6c8..0c3a49274 100755 --- a/gettext-tools/tests/lang-clisp +++ b/gettext-tools/tests/lang-clisp @@ -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