2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test msgcomm on PO files with contexts.
6 cat <<\EOF > mcomm-test25.in1
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
35 #~ msgstr "Enregistrer sous"
38 cat <<\EOF > mcomm-test25.in2
41 "Content-Type: text/plain; charset=UTF-8\n"
42 "Content-Transfer-Encoding: 8bit\n"
44 #. Denote a lock's state
49 #. Denote a lock's state
65 #~ msgstr "Enregistrer l'as"
69 ${MSGCOMM} --more-than=0 -o mcomm-test25.tmp mcomm-test25.in1 mcomm-test25.in2 || exit 1
70 LC_ALL=C tr -d '\r' < mcomm-test25.tmp > mcomm-test25.out || exit 1
72 cat <<\EOF > mcomm-test25.ok
75 "Content-Type: text/plain; charset=UTF-8\n"
76 "Content-Transfer-Encoding: 8bit\n"
88 #. Denote a lock's state
93 #. Denote a lock's state
106 msgstr "photocopieur"
111 #~ msgstr "Enregistrer sous"
114 #~ msgstr "Enregistrer l'as"
118 ${DIFF} mcomm-test25.ok mcomm-test25.out