Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tlug: Encoding troubles



>>>>> "Klaus" == Klaus Kudielka <klaus.kudielka@example.com> writes:

    Klaus> This means that currently Windows clients can perfectly
    Klaus> read/write Japanese filenames on HFS disks, but not on VFAT
    Klaus> disks!

Let 'em suffer!  Convert them to Linux!  :-)

    Klaus> There seem to be three solutions to the problem:
    Klaus> 1. modify the FAT code in the kernel to support iocharset=SJIS.

I believe there are patches to do this.  But I don't think it's a good 
idea.  SJIS is definitely not file-system-safe, unless you are on a
DOS/V box or something like that.

    Klaus> 2. mount the VFAT partitions with utf8=1 and modify Samba
    Klaus> to support different per-share filename encodings,
    Klaus> including utf8.

Better, but extra work, because ...

    Klaus> 3. define UTF-8 to be the standard filename encoding at the
    Klaus> application level. Add SJIS<->UTF-8 ranslation to HFS and
    Klaus> modify Samba to support UTF-8 for local filenames
    Klaus> (per-share setting not needed).

This is the obviously correct way to go.  It also give extensibility
to UTF-32/UCS-4 character sets, with no extra work (you can put in the
tests for size now in case you want to restrict it).  You won't have
to change again in your life time, unless SETI succeeds (thanks to
Steve Baur for pointing out this important caveat ;-).

-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences       Tel/fax: +81 (298) 53-5091
__________________________________________________________________________
__________________________________________________________________________
What are those two straight lines for?  "Free software rules."
-------------------------------------------------------------------
Next Nomikai: September 17 (Fri), 19:30 Tengu TokyoEkiMae 03-3275-3691
Next Technical Meeting: October 9 (Sat), 13:00     place: Temple Univ.
-------------------------------------------------------------------
more info: http://www.tlug.gr.jp        Sponsor: Global Online Japan


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links