transmission: upgrade 2.31 to 2.32
[tomato.git] / release / src / router / gettext / gettext-tools / tests / msgmerge-6
blobe3e147cc14e5bbe4eed77fda76c06e89bb075bcd
1 #! /bin/sh
3 # Test non-ASCII character at the end of msgstr. (Triggered a glibc-2.1 bug.)
5 tmpfiles=""
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mm-test6.in1.po mm-test6.in2.po"
9 cat <<\EOF > mm-test6.in1.po
10 # SOME DESCRIPTIVE TITLE.
11 # Copyright (C) YEAR Free Software Foundation, Inc.
12 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
14 msgid ""
15 msgstr ""
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"
25 #: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14
26 msgid "white"
27 msgstr "weiß"
28 EOF
30 cat <<EOF > mm-test6.in2.po
31 # SOME DESCRIPTIVE TITLE.
32 # Copyright (C) YEAR Free Software Foundation, Inc.
33 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
35 msgid ""
36 msgstr ""
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"
46 #: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14
47 msgid "white"
48 msgstr ""
50 #: cogarithmetic.cc:13 cogroman.cc:109 cogroman.cc:114
51 msgid "false."
52 msgstr ""
54 #: cogarithmetic.cc:14
55 msgid "was correct."
56 msgstr ""
57 EOF
59 tmpfiles="$tmpfiles mm-test6.out"
60 : ${MSGMERGE=msgmerge}
61 LC_MESSAGES=C LC_ALL= \
62 ${MSGMERGE} -q mm-test6.in1.po mm-test6.in2.po -o mm-test6.out
63 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
65 tmpfiles="$tmpfiles mm-test6.ok"
66 cat <<\EOF > mm-test6.ok
67 # SOME DESCRIPTIVE TITLE.
68 # Copyright (C) YEAR Free Software Foundation, Inc.
69 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
71 msgid ""
72 msgstr ""
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"
82 #: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14
83 msgid "white"
84 msgstr "weiß"
86 #: cogarithmetic.cc:13 cogroman.cc:109 cogroman.cc:114
87 msgid "false."
88 msgstr ""
90 #: cogarithmetic.cc:14
91 msgid "was correct."
92 msgstr ""
93 EOF
95 : ${DIFF=diff}
96 ${DIFF} mm-test6.ok mm-test6.out
97 result=$?
99 rm -fr $tmpfiles
101 exit $result