1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test msgconv on a PO file with previous msgids.
5
6cat <<\EOF > mco-test6.po
7msgid ""
8msgstr ""
9"Report-Msgid-Bugs-To: \n"
10"Content-Type: text/plain; charset=UTF-8\n"
11"Content-Transfer-Encoding: 8bit\n"
12
13#, fuzzy
14#| msgid "© Frobby Inc."
15msgid "(C) Frobby Inc."
16msgstr "(C) Dingsbums GmbH"
17
18#, fuzzy
19#| msgid "full 360°"
20msgid "full turn"
21msgstr "Volle 360 Grad"
22EOF
23
24: ${MSGCONV=msgconv}
25${MSGCONV} --to-code=ISO-8859-1 -o mco-test6.tmp mco-test6.po || Exit 1
26LC_ALL=C tr -d '\r' < mco-test6.tmp > mco-test6.out || Exit 1
27
28cat <<\EOF > mco-test6.ok
29msgid ""
30msgstr ""
31"Report-Msgid-Bugs-To: \n"
32"Content-Type: text/plain; charset=ISO-8859-1\n"
33"Content-Transfer-Encoding: 8bit\n"
34
35#, fuzzy
36#| msgid "� Frobby Inc."
37msgid "(C) Frobby Inc."
38msgstr "(C) Dingsbums GmbH"
39
40#, fuzzy
41#| msgid "full 360�"
42msgid "full turn"
43msgstr "Volle 360 Grad"
44EOF
45
46: ${DIFF=diff}
47${DIFF} mco-test6.ok mco-test6.out
48result=$?
49
50exit $result
51