Re: [PATCH] Russian encoding support for MacHFS

From: Pavel Fedin
Date: Tue Jan 25 2005 - 04:39:01 EST


On Mon, 24 Jan 2005 19:46:18 +0100
Alex Riesen <raa.lkml@xxxxxxxxx> 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.

> Unicode, and its encoding UTF8 IS commonly used everywhere.
> And Russia can (and often does) use it just as well.

Many people say many software is not UTF8-ready yet. Anyway i had problems when tried to use it. Many russian ASCII documents use 8-bit encoding so i need to be able to deal with them. Many software assumes that 1 byte is 1 character.

> P.S. Read Documentation/SubmittingPatches.

Ok. Sorry for violations.

> What kernel is the patch against?

2.6.8.

--
Best regards,
Pavel Fedin, mailto:sonic_amiga@xxxxxxxxxx
-
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/