blob: 97582f111efae5109ff220095bd0ae0668c6d091 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#! /bin/sh
# Test failing conversion from ISO-8859-15 to ISO-8859-1.
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
tmpfiles="$tmpfiles mco-test3.po"
cat <<\EOF > mco-test3.po
msgid ""
msgstr ""
"Project-Id-Version: GNU one 1.2.3\n"
"POT-Creation-Date: 2000-12-11 20:49+0100\n"
"PO-Revision-Date: 2000-03-18 15:25+01:00\n"
"Last-Translator: aaa bbb <ccc@ddd>\n"
"Language-Team: French <fr@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-15\n"
"Content-Transfer-Encoding: 8bit\n"
#: foo.c:123
msgid "Werk"
msgstr "Ľuvre"
EOF
tmpfiles="$tmpfiles mco-test3.out"
: ${MSGCONV=msgconv}
${MSGCONV} -t ISO-8859-1 mco-test3.po -o mco-test3.out 2>/dev/null
test $? = 1
result=$?
rm -fr $tmpfiles
exit $result
|