facf0c92e0
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
47 lines
1.1 KiB
Bash
Executable File
47 lines
1.1 KiB
Bash
Executable File
#! /bin/sh
|
|
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
|
|
|
|
# Test conversion from UTF-8 to BIG5.
|
|
# Test that encoding names are case insensitive.
|
|
|
|
# Note: This test fails on Linux with musl libc versions that don't support
|
|
# the BIG5 encoding in 'iconv'.
|
|
|
|
cat <<\EOF > mco-test2.po
|
|
# Chinese translation for GNU gettext messages.
|
|
#
|
|
msgid ""
|
|
msgstr ""
|
|
"MIME-Version: 1.0\n"
|
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
#: src/msgcmp.c:155 src/msgmerge.c:273
|
|
msgid "exactly 2 input files required"
|
|
msgstr "甇文��賡�閬��憟賣�摰𡁜��贝撓�交�"
|
|
EOF
|
|
|
|
: ${MSGCONV=msgconv}
|
|
${MSGCONV} -t Big5 -o mco-test2.out mco-test2.po || Exit 1
|
|
|
|
cat <<\EOF > mco-test2.ok
|
|
# Chinese translation for GNU gettext messages.
|
|
#
|
|
msgid ""
|
|
msgstr ""
|
|
"MIME-Version: 1.0\n"
|
|
"Content-Type: text/plain; charset=BIG5\n"
|
|
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
#: src/msgcmp.c:155 src/msgmerge.c:273
|
|
msgid "exactly 2 input files required"
|
|
msgstr "此功能需要恰好指定兩個輸入檔"
|
|
EOF
|
|
|
|
: ${DIFF=diff}
|
|
# Redirect stdout, so as not to fill the user's screen with non-ASCII bytes.
|
|
${DIFF} mco-test2.ok mco-test2.out >/dev/null
|
|
result=$?
|
|
|
|
exit $result
|