Mailing List Archive


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

Re: [tlug] Reading kanji file name from Mac OS X, without using Win XP



>>>>> "David" == David Riggs <dariggs@example.com> writes:

    David> I have been struggling to read a CD of precious files with
    David> kanji names that was written on Mac OS X.

Mac OS X sucks as far as internationalization of the file system
goes.  HFS+ is a bag on a kludge on a bump on a log in a hole in the
bottom of the sea.

    David> The file names always came out as a series of ? and _, no
    David> matter how I mounted it: -o iocharset=sjis, or utf-8 or
    David> euc-jp etc; codepage=932 and 942.

iocharset and codepage are really only useful with Windows-based FAT
and ISO 9660 filesystems using UTF-16 as the encoding.  Nobody but
Microsoft can afford to pay the "not a C string" tax.  Everybody else
uses an ASCII-compatible variable-width encoding, usually UTF-8 or an
EUC variant.  My guess is that your problem is not Linux, its your
shell and stty settings.

    David> Does anyone know how to do this on Linux?

Try dired from Emacs.  I don't know about GNU-foo Emacs, but in XEmacs
21.5 you might want to M-x set-file-name-coding-system to utf-8, and
possibly M-x setenv LANG=ja_JP.UTF-8.  If you can get that to work,
then you know what the coding is and you can learn the appropriate
switches for your other UI components.


-- 
School of Systems and Information Engineering http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links