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