2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test handling of input files with different charsets.
6 cat <<\EOF > mcat-test2.in1
7 # German message file for xyz.
8 # Copyright (C) 1999, 2000, 2001 xyz.
9 # Kab Def <ke@zzz.uucp>, 2000.
13 "Project-Id-Version: xyz\n"
14 "POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
15 "PO-Revision-Date: 2001-04-24 13:02+02:00\n"
16 "Last-Translator: Kab Def <ke@zzz.uucp>\n"
17 "Language-Team: German <i18n@zzz.uucp>\n"
19 "Content-Type: text/plain; charset=ISO-8859-1\n"
20 "Content-Transfer-Encoding: 8bit\n"
22 #. Help text (HTML-like) START
23 #: clients/inst_ask_config.ycp:119
30 cat <<\EOF > mcat-test2.in2
31 # German message file for xyz.
32 # Copyright (C) 1999, 2000, 2001 xyz.
33 # Kab Def <ke@zzz.uucp>, 2000.
37 "Project-Id-Version: xyz\n"
38 "POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
39 "PO-Revision-Date: 2001-04-24 13:02+02:00\n"
40 "Last-Translator: Kab Def <ke@zzz.uucp>\n"
41 "Language-Team: German <i18n@zzz.uucp>\n"
43 "Content-Type: text/plain; charset=UTF-8\n"
44 "Content-Transfer-Encoding: 8bit\n"
46 #. Remind user of the login name he chose
47 #: clients/inst_ask_config.ycp:72
49 msgid "You can log in as \"%1\"."
50 msgstr "Sie können sich als \"%1\" einloggen."
56 LC_MESSAGES=C LC_ALL= \
57 ${MSGCAT} --more-than=0 -o mcat-test2.tmp \
58 mcat-test2.in1 mcat-test2.in2 >mcat-test2.err 2>&1
60 cat mcat-test2.err | grep -v 'warning: .* encodings' | grep -v '^ '
61 test $result = 0 || { exit 1; }
62 LC_ALL=C tr -d '\r' < mcat-test2.tmp > mcat-test2.out || exit 1
64 cat << \EOF > mcat-test2.ok
65 # German message file for xyz.
66 # Copyright (C) 1999, 2000, 2001 xyz.
67 # Kab Def <ke@zzz.uucp>, 2000.
71 "Project-Id-Version: xyz\n"
72 "POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
73 "PO-Revision-Date: 2001-04-24 13:02+02:00\n"
74 "Last-Translator: Kab Def <ke@zzz.uucp>\n"
75 "Language-Team: German <i18n@zzz.uucp>\n"
77 "Content-Type: text/plain; charset=UTF-8\n"
78 "Content-Transfer-Encoding: 8bit\n"
80 #. Help text (HTML-like) START
81 #: clients/inst_ask_config.ycp:119
82 msgid "Congratulations!"
85 #. Remind user of the login name he chose
86 #: clients/inst_ask_config.ycp:72
88 msgid "You can log in as \"%1\"."
89 msgstr "Sie können sich als \"%1\" einloggen."
93 ${DIFF} mcat-test2.ok mcat-test2.out