mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Fedin <sonic_amiga@rambler.ru>
To: linux-kernel@vger.kernel.org
Cc: Sven Luther <sven.luther@wanadoo.fr>
Subject: [PATCH] Russian encoding support for MacHFS
Date: Tue, 11 Jan 2005 11:58:01 +0300	[thread overview]
Message-ID: <20050111115801.6ccb5774.sonic_amiga@rambler.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 1161 bytes --]

 Hello, guys! I'd like to present to the community my second kernel project. This patch adds support for russian characters on MacHFS volumes if you use koi8-r encoding on Linux (this is the common case in Russia).
 The implementation is probably not very good because it uses its own tables instead of NLS modules. Using NLS modules i consider impossible because due to MacHFS nature (at least current implementation nature) names must be supplied in MacOS encoding for proper searching. This means that you must to be able to reverse-translate all names from Linux encoding to Mac encoding. Using NLS causes characters loss if requested character does not exist in the table (it is substituted by '?'). Macintosh disks often contains specific characters in file names ("Folder" character for example) which will be lost in this case.
 If someone has some idea how to fix this you're welcome. I currently don't see a way to make the thing better because i don't know internal HFS structure. Probably using utf8 as host encoding would solve the problem but it's not commonly used in Russia.

-- 
Best regards,
Pavel Fedin,									mailto:sonic_amiga@rambler.ru

[-- Attachment #2: hfs-koi8r.diff.bz2 --]
[-- Type: application/x-bzip2, Size: 4460 bytes --]

             reply	other threads:[~2005-01-11  9:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-11  8:58 Pavel Fedin [this message]
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

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=20050111115801.6ccb5774.sonic_amiga@rambler.ru \
    --to=sonic_amiga@rambler.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sven.luther@wanadoo.fr \
    /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

all inboxes | Powered by JetHome®