1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test handling of invalid multibyte sequences. 5 6cat <<\EOF > mf-11.po 7msgid "" 8msgstr "" 9"Project-Id-Version: control-center 1.0.6\n" 10"POT-Creation-Date: 2002-06-02 17:13-0700\n" 11"PO-Revision-Date: 2002-05-29 20:11+0200\n" 12"Last-Translator: Yuriy Syrota <yuri@renome.rovno.ua>\n" 13"Language-Team: Ukrainian <uk@li.org>\n" 14"MIME-Version: 1.0\n" 15"Content-Type: text/plain; charset=utf-8\n" 16"Content-Transfer-Encoding: 8bit\n" 17 18msgid "_Enable keyboard accessibility" 19msgstr "_�צ������ ���æ���Φ ��������Ԧ ���צ�����" 20EOF 21 22: ${MSGFMT=msgfmt} 23${MSGFMT} --check -o mf-11.mo mf-11.po 2>/dev/null 24# Exit code must be 1. 25# If the invalid sequence didn't get noticed, it would be 0. 26# If it produced a core dump, it would be 134 (= 128 + SIGABRT). 27test $? = 1 28result=$? 29 30exit $result 31