2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test handling of input files with different charsets.
6 cat <<\EOF > mcomm-test16.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 > mcomm-test16.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."
53 rm -f mcomm-test16.tmp
56 LC_MESSAGES=C LC_ALL= \
57 ${MSGCOMM} --more-than=0 -o mcomm-test16.tmp \
58 mcomm-test16.in1 mcomm-test16.in2 >mcomm-test16.err 2>&1
60 cat mcomm-test16.err | grep -v 'warning: .* encodings' | grep -v '^ '
61 test $result = 0 || { exit 1; }
62 LC_ALL=C tr -d '\r' < mcomm-test16.tmp > mcomm-test16.out || exit 1
64 cat << \EOF > mcomm-test16.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} mcomm-test16.ok mcomm-test16.out