2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test msggrep on a PO file with contexts.
6 cat <<\EOF > mg-test7.po
9 "Content-Type: text/plain; charset=UTF-8\n"
10 "Content-Transfer-Encoding: 8bit\n"
22 #. Denote a lock's state
27 #. Denote a lock's state
43 #~ msgstr "Enregistrer l'as"
48 #~ msgstr "Enregistrer sous"
52 LC_MESSAGES=C LC_ALL= \
53 ${MSGGREP} -J -e "File|" -o mg-test7.tmp mg-test7.po 2> mg-test7.err
55 cat mg-test7.err | grep -v 'warning: Locale charset' | grep -v '^ '
56 test $result = 0 || { exit 1; }
57 LC_ALL=C tr -d '\r' < mg-test7.tmp > mg-test7.out || exit 1
59 cat <<\EOF > mg-test7.ok
62 "Content-Type: text/plain; charset=UTF-8\n"
63 "Content-Transfer-Encoding: 8bit\n"
78 #~ msgstr "Enregistrer sous"
82 ${DIFF} mg-test7.ok mg-test7.out