summaryrefslogtreecommitdiff
path: root/gettext-tools/tests/msgconv-3
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-12-24 07:38:37 +0000
committer <>2015-02-02 12:02:29 +0000
commit482840e61f86ca321838a91e902c41d40c098bbb (patch)
tree01ea2e242fd2792d19fe192476601587901db794 /gettext-tools/tests/msgconv-3
downloadgettext-tarball-482840e61f86ca321838a91e902c41d40c098bbb.tar.gz
Imported from /home/lorry/working-area/delta_gettext-tarball/gettext-0.19.4.tar.xz.gettext-0.19.4
Diffstat (limited to 'gettext-tools/tests/msgconv-3')
-rwxr-xr-xgettext-tools/tests/msgconv-328
1 files changed, 28 insertions, 0 deletions
diff --git a/gettext-tools/tests/msgconv-3 b/gettext-tools/tests/msgconv-3
new file mode 100755
index 0000000..ac44d96
--- /dev/null
+++ b/gettext-tools/tests/msgconv-3
@@ -0,0 +1,28 @@
+#! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
+
+# Test failing conversion from ISO-8859-15 to ISO-8859-1.
+
+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
+
+: ${MSGCONV=msgconv}
+${MSGCONV} -t ISO-8859-1 mco-test3.po -o mco-test3.out 2>/dev/null
+test $? = 1
+result=$?
+
+exit $result