From: Bruno Haible Date: Fri, 14 Aug 2009 16:44:36 +0000 (+0200) Subject: Avoid a warning message on Cygwin. X-Git-Tag: v0.18~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5f14b260007814a2ab66c385e7cfb56f37d31f2;p=thirdparty%2Fgettext.git Avoid a warning message on Cygwin. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 268ceeaa4..71bee0750 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,8 @@ +2009-08-14 Bruno Haible + + Avoid a warning message on Cygwin. + * msggrep-7: Filter out msggrep's warning about locale charset. + 2009-08-13 Bruno Haible * msgexec-1: Filter out msgexec's warning about locale charset. diff --git a/gettext-tools/tests/msggrep-7 b/gettext-tools/tests/msggrep-7 index 2809beb35..caa2e2e97 100755 --- a/gettext-tools/tests/msggrep-7 +++ b/gettext-tools/tests/msggrep-7 @@ -51,11 +51,13 @@ msgstr "photocopieur" #~ msgstr "Enregistrer sous" EOF -tmpfiles="$tmpfiles mg-test7.tmp mg-test7.out" +tmpfiles="$tmpfiles mg-test7.tmp mg-test7.out mg-test7.err" : ${MSGGREP=msggrep} LC_MESSAGES=C LC_ALL= \ -${MSGGREP} -J -e "File|" -o mg-test7.tmp mg-test7.po -test $? = 0 || { rm -fr $tmpfiles; exit 1; } +${MSGGREP} -J -e "File|" -o mg-test7.tmp mg-test7.po 2> mg-test7.err +result=$? +cat mg-test7.err | grep -v 'warning: Locale charset' | grep -v '^ ' +test $result = 0 || { rm -fr $tmpfiles; exit 1; } LC_ALL=C tr -d '\r' < mg-test7.tmp > mg-test7.out test $? = 0 || { rm -fr $tmpfiles; exit 1; }