Re: [PATCH] Russian encoding support for MacHFS

From: Roman Zippel
Date: Tue Jan 25 2005 - 10:38:09 EST


Hi,

On Tue, 25 Jan 2005, Pavel Fedin wrote:

> > how about just leave the characters unchanged? (remap them to the same
> > codes in Unicode).
>
> But what to do when i convert then from unicode to 8-bit iocharset?
> This can lead to that several characters in Mac charset will be
> converted to the same character in Linux charset. This will lead to
> information loss and name will not be reverse-translatable.
> To describe the thing better: i have 8-bit Mac encoding and 8-bit
> target encoding (iocharset). I need to convert from (1) to (2) and be
> able to convert back. I tried to perform a one-way conversion like in
> other filesystems but this didn't work.
> Probably NLS tables can be used when iocharset is UTF8. If you wish i
> can try to implement it after some time.

I'm not quite sure, what problem you're trying to solve here. NLS is used
to convert from a local encoding to unicode, HFS has only 8bit
characters, so there isn't much space to store the unicode characters in.
If you want to use utf-8, you can do so without changing hfs. All
filesystem which don't use nls (that includes e.g. ext3) store the
filename in the local encoding.
If you want to store unicode characters use HFS+, I plan to implement nls
support real soon for it (especially because to also fix the missing
decomposition support).

bye, Roman
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/