From owner-freebsd-current Sat Apr 17 4:34:40 1999 Delivered-To: freebsd-current@freebsd.org Received: from work.mzaki.nom (3.pool6.tokyo.att.ne.jp [165.76.23.18]) by hub.freebsd.org (Postfix) with ESMTP id 2A16814D23; Sat, 17 Apr 1999 04:34:36 -0700 (PDT) (envelope-from mzaki@e-mail.ne.jp) Received: from localhost (localhost [127.0.0.1]) by work.mzaki.nom (8.9.2/8.9.2) with ESMTP id UAA00437; Sat, 17 Apr 1999 20:31:52 +0900 (JST) (envelope-from mzaki@e-mail.ne.jp) 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. In-Reply-To: <19990414151257E.mzaki@e-mail.ne.jp> References: <19990414151257E.mzaki@e-mail.ne.jp> X-Mailer: Mew version 1.94b7 on XEmacs 21.0 (20 minutes to Nikko) X-fingerprint: BD 86 CD D9 66 FD 75 B0 A8 43 4B C4 E2 1B F5 B5 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19990417203151E.mzaki@e-mail.ne.jp> Date: Sat, 17 Apr 1999 20:31:51 +0900 From: Motomichi Matsuzaki X-Dispatcher: imput version 990212(IM106) Lines: 83 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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