Convert files over to UTF-8.

These files contained various combinations of Big5, eucJP and KOI8-U
encoded strings. The byte representations of their respective encodings
have been translated to $'...' escape sequences as understood by our sh(1).

With help from:	jilles
This commit is contained in:
Ulrich Spörlein 2012-01-05 21:36:53 +00:00
parent 389ae6c65d
commit 381edcda1e
4 changed files with 22 additions and 13 deletions

View File

@ -9,8 +9,10 @@ mdconfig -a -t swap -s 128m -u 10
bsdlabel -w md10 auto
newfs_msdos -F 16 -b 8192 /dev/md10a
mount_msdosfs -L zh_TW.Big5 -D CP950 /dev/md10a /tmp/msdosfstest/
mkdir /tmp/msdosfstest/012345678_邪惡之美
cd /tmp/msdosfstest/012345678_邪惡之美
# The comment is UTF-8, the actual command uses the Big5 representation.
# mkdir /tmp/msdosfstest/012345678_邪惡之美
mkdir /tmp/msdosfstest/012345678_$'\250\270\264\143\244\247\254\374'
cd /tmp/msdosfstest/012345678_$'\250\270\264\143\244\247\254\374'
if [ $? -eq 0 ]; then
echo "ok 3";
else

View File

@ -8,12 +8,12 @@ mdconfig -a -t swap -s 128m -u 10
bsdlabel -w md10 auto
newfs_msdos -F 16 -b 8192 /dev/md10a
mount_msdosfs -L uk_UA.KOI8-U -D CP866 -l /dev/md10a /tmp/msdosfstest
# mkdir /tmp/msdosfstest/U+0456 (CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I)
mkdir /tmp/msdosfstest/¦
# The comment is UTF-8, the actual command uses the KOI8-U representation.
# mkdir /tmp/msdosfstest/і (CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I)
mkdir /tmp/msdosfstest/$'\246'
if [ $? -eq 0 ]; then
echo "ok 4 (pass stage 1/3)"
# cd /tmp/msdosfstest/U+0456 (CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I)
cd /tmp/msdosfstest/¦
cd /tmp/msdosfstest/$'\246'
if [ $? -eq 0 ]; then
echo "ok 4 (pass stage 2/3)"
cd /tmp

View File

@ -10,18 +10,20 @@ mdconfig -a -t swap -s 128m -u 10
bsdlabel -w md10 auto
newfs_msdos -F 16 -b 8192 /dev/md10a
mount_msdosfs -L ja_JP.eucJP -D CP932 -l /dev/md10a /tmp/msdosfstest
# touch /tmp/msdosfstest/U+FF71 (HALFWIDTH KATAKANA LETTER A)
touch /tmp/msdosfstest/Ž±
# The comment is UTF-8, the actual command uses the eucJP representation.
# touch /tmp/msdosfstest/ア (HALFWIDTH KATAKANA LETTER A)
touch /tmp/msdosfstest/$'\216\261'
if [ $? -eq 0 ]; then
umount /tmp/msdosfstest
mount_msdosfs -L ja_JP.eucJP -D CP932 -s /dev/md10a /tmp/msdosfstest
ls /tmp/msdosfstest/Ž±
ls /tmp/msdosfstest/$'\216\261'
if [ $? -eq 0 ]; then
echo "ok 5 (pass stage 1/2)"
umount /tmp/msdosfstest
mount_msdosfs -L uk_UA.KOI8-U -D CP866 -l /dev/md10a /tmp/msdosfstest
# ls /tmp/msdosfstest/0xb1 (MEDIUM SHADE)
ls /tmp/msdosfstest/
# The comment is UTF-8, the actual command uses the KOI8-U representation.
# ls /tmp/msdosfstest/▒ (MEDIUM SHADE)
ls /tmp/msdosfstest/$'\221'
if [ $? -ne 0 ]; then
# assume that U+FF71 was recorded with long name
echo "ok 5 (pass stage 2/2)"

View File

@ -9,8 +9,13 @@ mdconfig -a -t swap -s 128m -u 10
bsdlabel -w md10 auto
newfs_msdos -F 32 -b 8192 /dev/md10a
mount_msdosfs -L zh_TW.Big5 -D CP950 /dev/md10a /tmp/msdosfstest/
mkdir '/tmp/msdosfstest/是否看過坊間常見的許茹芸淚海慶功宴吃蓋飯第四集'
cd '/tmp/msdosfstest/是否看過坊間常見的許茹芸淚海慶功宴吃蓋飯第四集'
# The comment is UTF-8, the actual command uses the Big5 representation.
# mkdir /tmp/msdosfstest/是否看過坊間常見的許茹芸淚海慶功宴吃蓋飯第四集
subdir=$'\254\117\247\137\254\335\271\114\247\173\266\241\261\140\250\243'\
$'\252\272\263\134\257\370\252\345\262\134\256\374\274\171\245\134'\
$'\256\142\246\131\273\134\266\272\262\304\245\174\266\260'
mkdir /tmp/msdosfstest/$subdir
cd /tmp/msdosfstest/$subdir
if [ $? -eq 0 ]; then
echo "ok 6";
else