2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test conversion from BIG5 to UTF-8.
6 cat <<\EOF > mco-test1.po
7 # Chinese translation for GNU gettext messages.
12 "Content-Type: text/plain; charset=big5\n"
13 "Content-Transfer-Encoding: 8bit\n"
15 #: src/msgcmp.c:155 src/msgmerge.c:273
16 msgid "exactly 2 input files required"
17 msgstr "¦¹¥\¯à»Ýn«ê¦n«ü©w¨âÓ¿é¤JÀÉ"
21 ${MSGCONV} --to-code=UTF-8 -o mco-test1.out mco-test1.po || exit 1
23 cat <<\EOF > mco-test1.ok
24 # Chinese translation for GNU gettext messages.
29 "Content-Type: text/plain; charset=UTF-8\n"
30 "Content-Transfer-Encoding: 8bit\n"
32 #: src/msgcmp.c:155 src/msgmerge.c:273
33 msgid "exactly 2 input files required"
34 msgstr "此功能需要恰好指定兩個輸入檔"
38 # Redirect stdout, so as not to fill the user's screen with non-ASCII bytes.
39 ${DIFF} mco-test1.ok mco-test1.out >/dev/null