#! /bin/sh # Verify that msgcat complains when it would need to change msgids. tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 tmpfiles="$tmpfiles mcat-test12.in1 mcat-test12.in2" cat <<\EOF > mcat-test12.in1 msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Denote a lock's state msgid "Open" msgstr "Ouverte" #. Denote a lock's state msgid "Closed" msgstr "Fermée" EOF cat <<\EOF > mcat-test12.in2 msgid "" msgstr "" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #. Denote a lock's state msgid "Open" msgstr "Ouvert" #. Denote a lock's state msgid "Closed" msgstr "Fermé" #. A product msgid "Audi car" msgstr "voiture Audi" #. A product msgid "Océ copier" msgstr "photocopieur Océ" EOF tmpfiles="$tmpfiles mcat-test12.out" rm -f mcat-test12.out : ${MSGCAT=msgcat} ${MSGCAT} -o mcat-test12.out mcat-test12.in1 mcat-test12.in2 2>/dev/null test $? = 1 || { rm -fr $tmpfiles; exit 1; } rm -fr $tmpfiles exit 0 |