3 # Test conversion from UTF-8 to BIG5.
4 # Test that encoding names are case insensitive.
7 trap 'rm -fr $tmpfiles' 1 2 3 15
9 tmpfiles="$tmpfiles mco-test2.po"
10 cat <<\EOF > mco-test2.po
11 # Chinese translation for GNU gettext messages.
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
19 #: src/msgcmp.c:155 src/msgmerge.c:273
20 msgid "exactly 2 input files required"
21 msgstr "此功能需要恰好指定兩個輸入檔"
24 tmpfiles="$tmpfiles mco-test2.out"
26 ${MSGCONV} -t Big5 -o mco-test2.out mco-test2.po
27 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
29 tmpfiles="$tmpfiles mco-test2.ok"
30 cat <<\EOF > mco-test2.ok
31 # Chinese translation for GNU gettext messages.
36 "Content-Type: text/plain; charset=BIG5\n"
37 "Content-Transfer-Encoding: 8bit\n"
39 #: src/msgcmp.c:155 src/msgmerge.c:273
40 msgid "exactly 2 input files required"
41 msgstr "¦¹¥\¯à»Ýn«ê¦n«ü©w¨âÓ¿é¤JÀÉ"
45 # Redirect stdout, so as not to fill the user's screen with non-ASCII bytes.
46 ${DIFF} mco-test2.ok mco-test2.out >/dev/null