1#! /bin/sh 2 3# Test non-ASCII character at the end of msgstr. (Triggered a glibc-2.1 bug.) 4 5tmpfiles="" 6trap 'rm -fr $tmpfiles' 1 2 3 15 7 8tmpfiles="$tmpfiles mm-test6.in1.po mm-test6.in2.po" 9cat <<\EOF > mm-test6.in1.po 10# SOME DESCRIPTIVE TITLE. 11# Copyright (C) YEAR Free Software Foundation, Inc. 12# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 13# 14msgid "" 15msgstr "" 16"Project-Id-Version: cog_training 1.0\n" 17"POT-Creation-Date: 2001-04-29 22:40+0200\n" 18"PO-Revision-Date: 2001-04-29 21:19+02:00\n" 19"Last-Translator: Felix Natter <fnatter@gmx.net>\n" 20"Language-Team: German <de@li.org>\n" 21"MIME-Version: 1.0\n" 22"Content-Type: text/plain; charset=ISO-8859-1\n" 23"Content-Transfer-Encoding: 8bit\n" 24 25#: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14 26msgid "white" 27msgstr "wei�" 28EOF 29 30cat <<EOF > mm-test6.in2.po 31# SOME DESCRIPTIVE TITLE. 32# Copyright (C) YEAR Free Software Foundation, Inc. 33# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 34# 35msgid "" 36msgstr "" 37"Project-Id-Version: PACKAGE VERSION\n" 38"POT-Creation-Date: 2001-04-30 18:51+0200\n" 39"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 40"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 41"Language-Team: LANGUAGE <LL@li.org>\n" 42"MIME-Version: 1.0\n" 43"Content-Type: text/plain; charset=ISO-8859-1\n" 44"Content-Transfer-Encoding: 8bit\n" 45 46#: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14 47msgid "white" 48msgstr "" 49 50#: cogarithmetic.cc:13 cogroman.cc:109 cogroman.cc:114 51msgid "false." 52msgstr "" 53 54#: cogarithmetic.cc:14 55msgid "was correct." 56msgstr "" 57EOF 58 59tmpfiles="$tmpfiles mm-test6.out" 60: ${MSGMERGE=msgmerge} 61LC_MESSAGES=C LC_ALL= \ 62${MSGMERGE} -q -o mm-test6.out mm-test6.in1.po mm-test6.in2.po 63test $? = 0 || { rm -fr $tmpfiles; exit 1; } 64 65tmpfiles="$tmpfiles mm-test6.ok" 66cat <<\EOF > mm-test6.ok 67# SOME DESCRIPTIVE TITLE. 68# Copyright (C) YEAR Free Software Foundation, Inc. 69# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 70# 71msgid "" 72msgstr "" 73"Project-Id-Version: cog_training 1.0\n" 74"POT-Creation-Date: 2001-04-30 18:51+0200\n" 75"PO-Revision-Date: 2001-04-29 21:19+02:00\n" 76"Last-Translator: Felix Natter <fnatter@gmx.net>\n" 77"Language-Team: German <de@li.org>\n" 78"MIME-Version: 1.0\n" 79"Content-Type: text/plain; charset=ISO-8859-1\n" 80"Content-Transfer-Encoding: 8bit\n" 81 82#: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14 83msgid "white" 84msgstr "wei�" 85 86#: cogarithmetic.cc:13 cogroman.cc:109 cogroman.cc:114 87msgid "false." 88msgstr "" 89 90#: cogarithmetic.cc:14 91msgid "was correct." 92msgstr "" 93EOF 94 95: ${DIFF=diff} 96${DIFF} mm-test6.ok mm-test6.out 97result=$? 98 99rm -fr $tmpfiles 100 101exit $result 102