2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test --add-location=file option.
6 cat <<\EOF > mco-test7.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} --add-location=file --to-code=UTF-8 \
22 -o mco-test7.out mco-test7.po || exit 1
24 cat <<\EOF > mco-test7.ok
25 # Chinese translation for GNU gettext messages.
30 "Content-Type: text/plain; charset=UTF-8\n"
31 "Content-Transfer-Encoding: 8bit\n"
33 #: src/msgcmp.c src/msgmerge.c
34 msgid "exactly 2 input files required"
35 msgstr "此功能需要恰好指定兩個輸入檔"
39 # Redirect stdout, so as not to fill the user's screen with non-ASCII bytes.
40 ${DIFF} mco-test7.ok mco-test7.out >/dev/null