]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
New msgconv test.
authorBruno Haible <bruno@clisp.org>
Mon, 7 Jan 2002 17:54:08 +0000 (17:54 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 22:37:16 +0000 (00:37 +0200)
tests/ChangeLog
tests/Makefile.am
tests/msgconv-3 [new file with mode: 0755]

index 474c410c8aeb65737fc7078b9815cfed9696c5d7..4c98a97efee3febfd34428c3d18bbba65e571851 100644 (file)
@@ -1,3 +1,11 @@
+2002-01-06  Bruno Haible  <bruno@clisp.org>
+
+       * Makefile.am (TESTS): Add msgconv-3.
+
+2001-07-02  Karl Eichwalder  <ke@suse.de>
+
+       * msgconv-3: New file.
+
 2002-01-05  Bruno Haible  <bruno@clisp.org>
 
        * lang-java: If msgfmt fails (for example, due to missing iconv()
index e82ef09ba5dfe37c0d30f991615adf7c50a222d4..c7b916403e449a56509b42a7b706d0339e92571b 100644 (file)
@@ -29,7 +29,7 @@ TESTS = gettext-1 gettext-2 \
        msgcomm-8 msgcomm-9 msgcomm-10 msgcomm-11 msgcomm-12 msgcomm-13 \
        msgcomm-14 msgcomm-15 msgcomm-16 msgcomm-17 msgcomm-18 msgcomm-19 \
        msgcomm-20 msgcomm-21 msgcomm-22 msgcomm-23 \
-       msgconv-1 msgconv-2 \
+       msgconv-1 msgconv-2 msgconv-3 \
        msgen-1 \
        msgexec-1 msgexec-2 \
        msgfilter-1 msgfilter-2 \
diff --git a/tests/msgconv-3 b/tests/msgconv-3
new file mode 100755 (executable)
index 0000000..c9cc586
--- /dev/null
@@ -0,0 +1,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