Hey!

I've add UNICODE support to the Joliet patch.

It contains few charsets now, but to add other charsets is very easy.
Currently, iso8859-1 and euc-jp is included.

Mixture of Joliet/RockRidge Extension is also available, however untested.


How to use:

1. Pick up the patch from the URL.

   http://triaez.kaisei.org/~mzaki/joliet/joliet.unicode.patch.gz

   It contains huge table which provides conversion
    from unicode character to euc-jp, so that the gzip'ed size is 36k.
   So I give up to attach the patch to this mail.

2. Apply the patch to the source tree.

   #cd /usr/src
   #zcat /tmp/joliet.unicode.patch.gz|patch -p1

3. Make and install new mount_cd9660(8)

   #cd /usr/src/sbin/mount_cd9660
   #make; make install

4. Reconfig and reinstall your kernel and reboot.

5. Tell your kernel the charset you prefer.

   #sysctl -w vfs.charset=iso8859-1

   Currently, only 'none', 'iso8859-1' and 'euc-jp' is available.

       none      : The filenames are assumed to have 8bit character ONLY.
                   This is not recommended.

       iso8859-1 : 8bit characters.
                   All 16bit characters (include russian, greek, chinese, etc.)
                    are replaced with numerical ('0'-'9').

       euc-jp    : Japanese characters. 
                   This corresponds to the userland locale 'ja_JP.EUC'.
                   All characters unable to express are 
                    replaced with numerical ('0'-'9').


How to use other charsets:

1. Look at the /sys/isofs.
   charset and encoding directories are added.

   For Europians, to make new charset/*.c is sufficient.
   For Asians (Chinese, Korean, Japanese and so on),
    to make new encoding/*.c is also required.

   charset/*.c should contains Code Conversion Table.
   Currently, only 'UNICODE -> local charset' conversion is needed.
   (in future, reverse conversion may needed for msdosfs and ntfs.)

   encoding/*.c should contains multibyte encoding routines.
   These are subset of rune(3) at /usr/src/lib/libc/locale/
   At least, MSKanji is required for ja_JP.SJIS, BIG5 for zh_TW.BIG5, 
    also UTF-8 for all UNICODE locale.

2. Add new file entries to /sys/conf/files

3. Reconfig and reinstall your kernel and reboot.
   

More documents are now scheduled in some days at the URL

       http://triaez.kaisei.org/~mzaki/joliet/


-- 
Motomichi Matsuzaki <mz...@e-mail.ne.jp>
Dept. of Biological Science, Fuculty of Sciences, Univ. of Tokyo, Japan


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to