3 # A really simple script to create a swap-backed msdosfs filesystem, then
4 # test to make sure the mbnambuf optimisation(msdosfs_conv.c rev 1.40)
5 # doesn't break multi-byte characters.
7 mkdir /tmp/msdosfstest/
8 mdconfig -a -t swap -s 128m -u 10
10 newfs_msdos -F 16 -b 8192 /dev/md10a
11 mount_msdosfs -L zh_TW.Big5 -D CP950 /dev/md10a /tmp/msdosfstest/
12 # The comment is UTF-8, the actual command uses the Big5 representation.
13 # mkdir /tmp/msdosfstest/012345678_邪惡之美
14 mkdir /tmp/msdosfstest/012345678_$'\250\270\264\143\244\247\254\374'
15 cd /tmp/msdosfstest/012345678_$'\250\270\264\143\244\247\254\374'
22 umount /tmp/msdosfstest/
24 rmdir /tmp/msdosfstest/