]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid test failure in non-English locale.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Dec 2016 12:52:46 +0000 (13:52 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Dec 2016 12:52:46 +0000 (13:52 +0100)
* gettext-tools/tests/xgettext-its-2: Set the environment variable LC_MESSAGES
when we want to check for an error message in English.

gettext-tools/tests/xgettext-its-2

index 674a141495726709c2e3941ea14aba194d13121e..6c14c853bb359ae9aba64a9b7713f2148e443cd0 100755 (executable)
@@ -37,25 +37,25 @@ unset GETTEXTDATADIR
 unset GETTEXTDATADIRS
 unset XDG_DATA_DIRS
 
-${XGETTEXT} -o /dev/null input.a 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
+LC_MESSAGES=C ${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
 export GETTEXTDATADIR
-${XGETTEXT} -o /dev/null input.a 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
+LC_MESSAGES=C ${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
 export GETTEXTDATADIRS
-${XGETTEXT} -o /dev/null input.b 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
+LC_MESSAGES=C ${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
 export XDG_DATA_DIRS
-${XGETTEXT} -o /dev/null input.xa 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
+LC_MESSAGES=C ${XGETTEXT} -o /dev/null input.xa 2>&1 | grep 'is unknown; will try C' 2>&1 >/dev/null
 result=$?
 test $result = 0 && Exit 1