From: Alex Riesen <raa.lkml@gmail.com>
To: Pavel Fedin <sonic_amiga@rambler.ru>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Russian encoding support for MacHFS
Date: Thu, 27 Jan 2005 09:29:04 +0100 [thread overview]
Message-ID: <81b0412b050127002965e21f74@mail.gmail.com> (raw)
In-Reply-To: <20050125123516.7f40a397.sonic_amiga@rambler.ru>
On Tue, 25 Jan 2005 12:35:16 +0300, Pavel Fedin <sonic_amiga@rambler.ru> 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.
remap unicode character missing in filesystem codepage into something like '?'.
I believe this is what nls routines do if converter returns -1 (error).
You'd loose the new characters, right. But you'd loose them anyway, as they
have no place in mac software.
> > 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.
just fix that software instead of polluting the kernel.
And besides: software which _does_ work with unicode,
can make a good use of an nls module for HFS.
next prev parent reply other threads:[~2005-01-27 8:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-24 9:57 Pavel Fedin
2005-01-24 18:46 ` Alex Riesen
2005-01-25 9:35 ` Pavel Fedin
2005-01-25 15:34 ` Roman Zippel
2005-01-26 6:30 ` Pavel Fedin
2005-01-27 8:29 ` Alex Riesen [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-01-11 8:58 Pavel Fedin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=81b0412b050127002965e21f74@mail.gmail.com \
--to=raa.lkml@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sonic_amiga@rambler.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome