1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test that an out-of-range Unicode character doesn't lead to a crash. 5 6cat <<\EOF >mf-test13.po 7# SOME DESCRIPTIVE TITLE. 8# Copyright (C) YEAR Free Software Foundation, Inc. 9# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 10# 11msgid "" 12msgstr "" 13"Project-Id-Version: minicom 2.1\n" 14"POT-Creation-Date: 2003-05-16 22:33+0200\n" 15"PO-Revision-Date: 2003-09-11 14:10+0200\n" 16"Last-Translator: Jochen Hein <jochen@jochen.org>\n" 17"Language-Team: german <de@li.org>\n" 18"MIME-Version: 1.0\n" 19"Content-Type: text/plain; charset=utf-8\n" 20"Content-Transfer-Encoding: 8bit\n" 21 22#: src/file.c:60 23msgid " [Goto] [Prev] [Show] [Tag] [Untag] [Okay] " 24msgstr " [Gehe zu] [Zurück] [Anzeigen] [Markieren] [Markierung l����en] [Okay] " 25 26EOF 27 28: ${MSGFMT=msgfmt} 29${MSGFMT} mf-test13.po -o mf-test13.mo 2>/dev/null 30# Exit code must be 1. 31# If the invalid sequence didn't get noticed, it would be 0. 32# If it produced a core dump, it would be 134 (= 128 + SIGABRT). 33test $? = 1 34result=$? 35 36exit $result 37