3 # Test msgconv on a PO file with previous msgids.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mco-test6.po"
9 cat <<\EOF > mco-test6.po
12 "Report-Msgid-Bugs-To: \n"
13 "Content-Type: text/plain; charset=UTF-8\n"
14 "Content-Transfer-Encoding: 8bit\n"
17 #| msgid "© Frobby Inc."
18 msgid "(C) Frobby Inc."
19 msgstr "(C) Dingsbums GmbH"
24 msgstr "Volle 360 Grad"
27 tmpfiles="$tmpfiles mco-test6.tmp mco-test6.out"
29 ${MSGCONV} --to-code=ISO-8859-1 -o mco-test6.tmp mco-test6.po
30 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
31 LC_ALL=C tr -d '\r' < mco-test6.tmp > mco-test6.out
32 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
34 tmpfiles="$tmpfiles mco-test6.ok"
35 cat <<\EOF > mco-test6.ok
38 "Report-Msgid-Bugs-To: \n"
39 "Content-Type: text/plain; charset=ISO-8859-1\n"
40 "Content-Transfer-Encoding: 8bit\n"
43 #| msgid "© Frobby Inc."
44 msgid "(C) Frobby Inc."
45 msgstr "(C) Dingsbums GmbH"
50 msgstr "Volle 360 Grad"
54 ${DIFF} mco-test6.ok mco-test6.out