3
# Test conversion from BIG5 to UTF-8.
6
trap 'rm -fr $tmpfiles' 1 2 3 15
8
tmpfiles="$tmpfiles mco-test1.po"
9
cat <<\EOF > mco-test1.po
10
# Chinese translation for GNU gettext messages.
15
"Content-Type: text/plain; charset=big5\n"
16
"Content-Transfer-Encoding: 8bit\n"
18
#: src/msgcmp.c:155 src/msgmerge.c:273
19
msgid "exactly 2 input files required"
20
msgstr "���\��ݭn��n���w��ӿ�J��"
23
tmpfiles="$tmpfiles mco-test1.out"
25
${MSGCONV} --to-code=UTF-8 mco-test1.po -o mco-test1.out
26
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
28
tmpfiles="$tmpfiles mco-test1.ok"
29
cat <<\EOF > mco-test1.ok
30
# Chinese translation for GNU gettext messages.
35
"Content-Type: text/plain; charset=UTF-8\n"
36
"Content-Transfer-Encoding: 8bit\n"
38
#: src/msgcmp.c:155 src/msgmerge.c:273
39
msgid "exactly 2 input files required"
40
msgstr "此功能需要恰好指定兩個輸入檔"
44
# Redirect stdout, so as not to fill the user's screen with non-ASCII bytes.
45
${DIFF} mco-test1.ok mco-test1.out >/dev/null