From: Bruno Haible Date: Wed, 29 Oct 2003 11:49:28 +0000 (+0000) Subject: Hide the warning. X-Git-Tag: v0.13~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2166e59824d6514203c03c68a9cd5250ece2a2b0;p=thirdparty%2Fgettext.git Hide the warning. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 5cb57b1d0..1b2b38cf9 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,7 @@ +2003-10-21 Bruno Haible + + * lang-bash: Hide the warning about deprecated syntax. + 2003-10-21 Bruno Haible * msgmerge-25: New file. @@ -404,4 +408,4 @@ * xgettext-3: Update for changed domain name. -See ChangeLog.0 for earlier changes. \ No newline at end of file +See ChangeLog.0 for earlier changes. diff --git a/gettext-tools/tests/lang-bash b/gettext-tools/tests/lang-bash index b2899dcda..030e77c82 100755 --- a/gettext-tools/tests/lang-bash +++ b/gettext-tools/tests/lang-bash @@ -25,9 +25,14 @@ $echo $"'Your command, please?', asked the waiter." $echo "`eval_ngettext "a piece of cake" "\\$n pieces of cake" $n`" EOF -tmpfiles="$tmpfiles prog.pot" +tmpfiles="$tmpfiles prog.pot prog.err" : ${XGETTEXT=xgettext} -${XGETTEXT} -o prog.pot --omit-header --no-location prog.sh +LC_MESSAGES=C LC_ALL= \ +${XGETTEXT} -o prog.pot --omit-header --no-location prog.sh \ + >prog.err 2>&1 +result=$? +cat prog.err | grep -v 'warning: the syntax \$"\.\.\." is deprecated due to security reasons' +test $result = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" cat <<\EOF > prog.ok