~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to gettext-tools/tests/msgmerge-6

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Test non-ASCII character at the end of msgstr. (Triggered a glibc-2.1 bug.)
 
4
 
 
5
tmpfiles=""
 
6
trap 'rm -fr $tmpfiles' 1 2 3 15
 
7
 
 
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.
 
13
#
 
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"
 
24
 
 
25
#: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14
 
26
msgid "white"
 
27
msgstr "wei�"
 
28
EOF
 
29
 
 
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.
 
34
#
 
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"
 
45
 
 
46
#: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14
 
47
msgid "white"
 
48
msgstr ""
 
49
 
 
50
#: cogarithmetic.cc:13 cogroman.cc:109 cogroman.cc:114
 
51
msgid "false."
 
52
msgstr ""
 
53
 
 
54
#: cogarithmetic.cc:14
 
55
msgid "was correct."
 
56
msgstr ""
 
57
EOF
 
58
 
 
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; }
 
64
 
 
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.
 
70
#
 
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"
 
81
 
 
82
#: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14
 
83
msgid "white"
 
84
msgstr "wei�"
 
85
 
 
86
#: cogarithmetic.cc:13 cogroman.cc:109 cogroman.cc:114
 
87
msgid "false."
 
88
msgstr ""
 
89
 
 
90
#: cogarithmetic.cc:14
 
91
msgid "was correct."
 
92
msgstr ""
 
93
EOF
 
94
 
 
95
: ${DIFF=diff}
 
96
${DIFF} mm-test6.ok mm-test6.out
 
97
result=$?
 
98
 
 
99
rm -fr $tmpfiles
 
100
 
 
101
exit $result