Author: uqs Date: Thu Jan 5 21:36:53 2012 New Revision: 229656 URL: http://svn.freebsd.org/changeset/base/229656
Log: 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 Modified: head/tools/regression/msdosfs/msdosfstest-3.sh head/tools/regression/msdosfs/msdosfstest-4.sh head/tools/regression/msdosfs/msdosfstest-5.sh head/tools/regression/msdosfs/msdosfstest-6.sh Modified: head/tools/regression/msdosfs/msdosfstest-3.sh ============================================================================== --- head/tools/regression/msdosfs/msdosfstest-3.sh Thu Jan 5 21:36:45 2012 (r229655) +++ head/tools/regression/msdosfs/msdosfstest-3.sh Thu Jan 5 21:36:53 2012 (r229656) @@ -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 Modified: head/tools/regression/msdosfs/msdosfstest-4.sh ============================================================================== --- head/tools/regression/msdosfs/msdosfstest-4.sh Thu Jan 5 21:36:45 2012 (r229655) +++ head/tools/regression/msdosfs/msdosfstest-4.sh Thu Jan 5 21:36:53 2012 (r229656) @@ -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 Modified: head/tools/regression/msdosfs/msdosfstest-5.sh ============================================================================== --- head/tools/regression/msdosfs/msdosfstest-5.sh Thu Jan 5 21:36:45 2012 (r229655) +++ head/tools/regression/msdosfs/msdosfstest-5.sh Thu Jan 5 21:36:53 2012 (r229656) @@ -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)" Modified: head/tools/regression/msdosfs/msdosfstest-6.sh ============================================================================== --- head/tools/regression/msdosfs/msdosfstest-6.sh Thu Jan 5 21:36:45 2012 (r229655) +++ head/tools/regression/msdosfs/msdosfstest-6.sh Thu Jan 5 21:36:53 2012 (r229656) @@ -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�\�b�Y�\���ĥ|��' -cd '/tmp/msdosfstest/�O�_�ݹL�{���`�����\�����\���y�\�b�Y�\���ĥ|��' +# 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 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"