From: Bruno Haible Date: Sun, 4 Dec 2016 12:52:46 +0000 (+0100) Subject: Avoid test failure in non-English locale. X-Git-Tag: v0.20~492 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51394eb4e031483316763ebeb98848de8247ca7a;p=thirdparty%2Fgettext.git Avoid test failure in non-English locale. * gettext-tools/tests/xgettext-its-2: Set the environment variable LC_MESSAGES when we want to check for an error message in English. --- diff --git a/gettext-tools/tests/xgettext-its-2 b/gettext-tools/tests/xgettext-its-2 index 674a14149..6c14c853b 100755 --- a/gettext-tools/tests/xgettext-its-2 +++ b/gettext-tools/tests/xgettext-its-2 @@ -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