+2009-08-14 Bruno Haible <bruno@clisp.org>
+
+ Avoid a warning message on Cygwin.
+ * msggrep-7: Filter out msggrep's warning about locale charset.
+
2009-08-13 Bruno Haible <bruno@clisp.org>
* msgexec-1: Filter out msgexec's warning about locale charset.
#~ 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; }