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