Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / msgconv-3
1 #! /bin/sh
2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4 # Test failing conversion from ISO-8859-15 to ISO-8859-1.
5
6 cat <<\EOF > mco-test3.po
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: GNU one 1.2.3\n"
10 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
11 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
12 "Last-Translator: aaa bbb <ccc@ddd>\n"
13 "Language-Team: French <fr@li.org>\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=ISO-8859-15\n"
16 "Content-Transfer-Encoding: 8bit\n"
17
18 #: foo.c:123
19 msgid "Werk"
20 msgstr "¼uvre"
21 EOF
22
23 : ${MSGCONV=msgconv}
24 ${MSGCONV} -t ISO-8859-1 mco-test3.po -o mco-test3.out 2>/dev/null
25 test $? = 1
26 result=$?
27
28 exit $result