]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix a test failure when LC_ALL is set to a non-English locale.
authorBruno Haible <bruno@clisp.org>
Wed, 8 Jan 2025 19:47:51 +0000 (20:47 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 8 Jan 2025 19:47:51 +0000 (20:47 +0100)
Reported by Simon Josefsson <simon@josefsson.org>
in <https://lists.gnu.org/archive/html/bug-gettext/2025-01/msg00008.html>.

* gettext-tools/tests/xgettext-its-2: When setting LC_MESSAGES, also unset
LC_ALL.

gettext-tools/tests/xgettext-its-2

index 2441bf793f68d87b6a163075fb53a728181dd7d2..645a42633e95a061da4f936504f5e1b51070d6bc 100755 (executable)
@@ -37,22 +37,26 @@ unset GETTEXTDATADIR
 unset GETTEXTDATADIRS
 unset XDG_DATA_DIRS
 
-LC_MESSAGES=C ${XGETTEXT} -o /dev/null input.a 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
+LC_MESSAGES=C LC_ALL= \
+${XGETTEXT} -o /dev/null input.a 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
 result=$?
 test $result = 0 || Exit 1
 
 GETTEXTDATADIR=a \
-LC_MESSAGES=C ${XGETTEXT} -o /dev/null input.a 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
+LC_MESSAGES=C LC_ALL= \
+${XGETTEXT} -o /dev/null input.a 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
 result=$?
 test $result = 0 && Exit 1
 
 GETTEXTDATADIRS=b:a \
-LC_MESSAGES=C ${XGETTEXT} -o /dev/null input.b 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
+LC_MESSAGES=C LC_ALL= \
+${XGETTEXT} -o /dev/null input.b 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
 result=$?
 test $result = 0 && Exit 1
 
 XDG_DATA_DIRS=xa \
-LC_MESSAGES=C ${XGETTEXT} -o /dev/null input.xa 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
+LC_MESSAGES=C LC_ALL= \
+${XGETTEXT} -o /dev/null input.xa 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
 result=$?
 test $result = 0 && Exit 1