Mule bugs: misidentification (Latin-1 vs. Chinese), revert issues

Glynn Clements glynn at gclements.plus.com
Wed Jan 16 13:56:32 EST 2008


Stephen J. Turnbull wrote:

>  > And on OS X
>  > file-name-coding-system (and relatedly, the 'file-name coding system alias)
>  > is unconditionally UTF-8, independent of the locale coding system.
> 
> This is a good heuristic, since the most popular file system on OS X
> is HFS+, which does try to enforce UTF-8 file names.

Although, OSX encodes accented characters using combining accents
rather than using pre-composed characters. IIRC, OS functions will
decompose any pre-composed characters automatically, but you need to
bear in mind that a byte string obtained from e.g. readdir() won't
necessarily match the byte string you passed when creating the file.

Needless to say, Unix/Linux just treats composed/decomposed versions
of the same text as entirely different filenames.

-- 
Glynn Clements <glynn at gclements.plus.com>



More information about the XEmacs-Beta mailing list