From: Bruno Haible Date: Wed, 4 Apr 2001 13:35:30 +0000 (+0000) Subject: Hide warnings that appear when LANG or LC_MESSAGES is set. X-Git-Tag: v0.10.37~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f326106c8cdd4c54c94370d20762214ce08f466c;p=thirdparty%2Fgettext.git Hide warnings that appear when LANG or LC_MESSAGES is set. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 582921ea9..d23933603 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,9 @@ +2001-04-04 Bruno Haible + + * msgfmt-3: Set LC_MESSAGES=C, to filter out specific warnings. + * msgmerge-5: Likewise. + * xgettext-3: Likewise. + 2001-03-29 Bruno Haible * gettext-0.10.36 released. diff --git a/tests/msgfmt-3 b/tests/msgfmt-3 index cfc588e13..7bad44179 100755 --- a/tests/msgfmt-3 +++ b/tests/msgfmt-3 @@ -19,7 +19,9 @@ EOF tmpfiles="$tmpfiles mftest3.mo" : ${MSGFMT=msgfmt} -${MSGFMT} mf-test3.po -o mftest3.mo 2>&1 | grep -v 'warning: charset' +LC_MESSAGES=C LC_ALL= \ +${MSGFMT} mf-test3.po -o mftest3.mo 2>&1 \ + | grep -v 'warning: charset' test ! -f mftest3.mo result=$? diff --git a/tests/msgmerge-5 b/tests/msgmerge-5 index 642ecb3f1..c35293808 100755 --- a/tests/msgmerge-5 +++ b/tests/msgmerge-5 @@ -38,6 +38,7 @@ EOF tmpfiles="$tmpfiles mm-test5.out" : ${MSGMERGE=msgmerge} +LC_MESSAGES=C LC_ALL= \ ${MSGMERGE} -q mm-test5.in1.po mm-test5.in2.po -o mm-test5.out 2>&1 \ | grep -v 'warning: charset' diff --git a/tests/xgettext-3 b/tests/xgettext-3 index 5cef9a2ad..ea3e077db 100755 --- a/tests/xgettext-3 +++ b/tests/xgettext-3 @@ -7,6 +7,7 @@ trap 'rm -fr $tmpfiles' 1 2 3 15 tmpfiles="zero-domain.po" rm -f zero-domain.po : ${XGETTEXT=xgettext} +LC_MESSAGES=C LC_ALL= \ ${XGETTEXT} -k_ -d zero-domain -x $top_srcdir/po/gettext.pot \ $top_srcdir/src/xgettext.c 2>&1 \ | grep -v 'warning: charset'