From owner-FreeBSD-tech-jp@jp.freebsd.org  Sun Apr 18 15:47:30 1999
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.9.2+3.1W/8.7.3) id PAA02998;
	Sun, 18 Apr 1999 15:47:30 +0900 (JST)
	(envelope-from owner-FreeBSD-tech-jp@jp.FreeBSD.org)
Received: from stampede.cs.berkeley.edu (stampede.CS.Berkeley.EDU [128.32.45.124])
	by jaz.jp.freebsd.org (8.9.2+3.1W/8.7.3) with ESMTP id PAA02990
	for <freebsd-tech-jp@jp.freebsd.org>; Sun, 18 Apr 1999 15:47:28 +0900 (JST)
	(envelope-from asami@sunrise.cs.berkeley.edu)
Received: from bubble.didi.com (sji-ca14-50.ix.netcom.com [205.186.215.50]) by stampede.cs.berkeley.edu (8.8.7/8.7.3) with ESMTP id XAA24156 for <freebsd-tech-jp@jp.freebsd.org>; Sat, 17 Apr 1999 23:47:35 -0700 (PDT)
Received: (from asami@localhost)
	by bubble.didi.com (8.9.2/8.8.8) id XAA15844;
	Sat, 17 Apr 1999 23:45:52 -0700 (PDT)
	(envelope-from asami)
Date: Sat, 17 Apr 1999 23:45:52 -0700 (PDT)
Message-Id: <199904180645.XAA15844@bubble.didi.com>
To: freebsd-tech-jp@jp.freebsd.org
From: asami@cs.berkeley.edu (Satoshi Asami)
Reply-To: FreeBSD-tech-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990405
X-Sequence: FreeBSD-tech-jp 2107
Subject: [FreeBSD-tech-jp 2107] [mzaki@e-mail.ne.jp: Re: kern/5038: FreeBSD can't read MS Joliet CDs.]
Errors-To: owner-FreeBSD-tech-jp@jp.freebsd.org
Sender: owner-FreeBSD-tech-jp@jp.freebsd.org
X-Originator: asami@cs.berkeley.edu

$B$3$N%a!<%k$r$-$C$+$1$K$7$F(Bfreebsd-current$B$G(BUnicode$B$NOC$,@9$j>e$,$C$F$$(B
$B$^$9!#(BUnicode$B$r%+!<%M%k$KF~$l$k$J$s$F$H$s$G$b$J$$$H;W$C$F$$$k?M$OAa$/(B
$BH?O@$7$F$*$$$?J}$,$$$$$H;W$$$^$9!#(B

$B$"$5$_(B
------- Start of forwarded message -------
To: freebsd-gnats-submit@freebsd.org, keith@email.gcn.net.tw,
	dcs@newsguy.com
Cc: byung@wam.umd.edu, joki@kuebart.stuttgart.netsurf.de,
	freebsd-current@freebsd.org
Subject: Re: kern/5038: FreeBSD can't read MS Joliet CDs.
Date: Sat, 17 Apr 1999 20:31:51 +0900
From: Motomichi Matsuzaki <mzaki@e-mail.ne.jp>


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 <mzaki@e-mail.ne.jp>
Dept. of Biological Science, Fuculty of Sciences, Univ. of Tokyo, Japan


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