From 3060727ed7ba4d9b8c378bdcacc001bf87a89132 Mon Sep 17 00:00:00 2001 From: uqs Date: Thu, 5 Jan 2012 21:36:53 +0000 Subject: 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 --- tools/regression/msdosfs/msdosfstest-3.sh | 6 ++++-- tools/regression/msdosfs/msdosfstest-4.sh | 8 ++++---- tools/regression/msdosfs/msdosfstest-5.sh | 12 +++++++----- tools/regression/msdosfs/msdosfstest-6.sh | 9 +++++++-- 4 files changed, 22 insertions(+), 13 deletions(-) (limited to 'tools') diff --git a/tools/regression/msdosfs/msdosfstest-3.sh b/tools/regression/msdosfs/msdosfstest-3.sh index 4d3a8fe..bfffc58 100644 --- a/tools/regression/msdosfs/msdosfstest-3.sh +++ b/tools/regression/msdosfs/msdosfstest-3.sh @@ -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_c -cd /tmp/msdosfstest/012345678_c +# 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 diff --git a/tools/regression/msdosfs/msdosfstest-4.sh b/tools/regression/msdosfs/msdosfstest-4.sh index 46b9db9..5e3c88e 100644 --- a/tools/regression/msdosfs/msdosfstest-4.sh +++ b/tools/regression/msdosfs/msdosfstest-4.sh @@ -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 diff --git a/tools/regression/msdosfs/msdosfstest-5.sh b/tools/regression/msdosfs/msdosfstest-5.sh index f6a5581..6c8a45d 100644 --- a/tools/regression/msdosfs/msdosfstest-5.sh +++ b/tools/regression/msdosfs/msdosfstest-5.sh @@ -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)" diff --git a/tools/regression/msdosfs/msdosfstest-6.sh b/tools/regression/msdosfs/msdosfstest-6.sh index d64472d..c580b3e 100644 --- a/tools/regression/msdosfs/msdosfstest-6.sh +++ b/tools/regression/msdosfs/msdosfstest-6.sh @@ -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/O_ݹL{`\\y\bY\ĥ|' -cd '/tmp/msdosfstest/O_ݹL{`\\y\bY\ĥ|' +# 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 -- cgit v1.1