LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: "Alexander E. Patrakov" <patrakov@ums.usu.ru>
Cc: LKML <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>,
agalakhov@ifmlrs.uran.ru, Kay Sievers <kay.sievers@vrfy.org>
Subject: Re: [PATCH] Sanitize filesystem NLS handling
Date: Mon, 19 Mar 2007 23:25:54 +0900 [thread overview]
Message-ID: <878xdtux71.fsf@duaron.myhome.or.jp> (raw)
In-Reply-To: <45FE2483.4060706@ums.usu.ru> (Alexander E. Patrakov's message of "Mon\, 19 Mar 2007 10\:49\:55 +0500")
"Alexander E. Patrakov" <patrakov@ums.usu.ru> writes:
> OGAWA Hirofumi wrote:
>
>> I don't care about "read", because it doesn't corrupt filesystem. I care
>> about only "write", because it can corrupt filesystem.
>>
>> If it's read-only, I'll not care at all, and will agree.
>
> Here you are right, but please tell RedHat about this (and you'll be at
> least called an old-fashioned person). They (and from their initiative,
> almost everyone else) use UTF-8 based locales by default, and ONLY utf8 NLS
> gives correct characters in filenames in this case.
>
> Besides, FS corruption is possible only if the user intentionally writes two
> files with names differing only in their case.
No, the utf8 support of vfat is wrong. This is implementation
thing, and it is not recommended until it is fixed.
>> All are user policy. The users can switch locale and
>> G_FILENAME_ENCODING and something else, some app can switch it even
>> runtime, and I think kernel shouldn't have user policy, right?
>
> G_FILENAME_ENCODING is a Glib2-only heresy, please ignore it. The "ls" tool
> always assumes that file names are in the same encoding as the output of
> "locale charmap" command. The fact that the filenames (contrary to what
> Glib2 developers say) should be in the locale encoding becomes very obvious
> if one reads POSIX specifications for tar and cpio programs (otherwise, they
> won't talk about conversion errors).
I'm talking about two filesystems on a system here, not two encoding
on one filesystem. You can change locale on each filesystems, or each
directory, of course if it's not vfat.
It's wrong? May or may not be true. It's the user policy.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
next prev parent reply other threads:[~2007-03-19 14:26 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-18 16:55 Alexander E. Patrakov
2007-03-18 22:01 ` OGAWA Hirofumi
2007-03-19 2:58 ` Alexander E. Patrakov
2007-03-19 3:46 ` OGAWA Hirofumi
2007-03-19 4:38 ` Alexander E. Patrakov
2007-03-19 5:38 ` OGAWA Hirofumi
2007-03-19 5:49 ` Alexander E. Patrakov
2007-03-19 14:25 ` OGAWA Hirofumi [this message]
2007-03-19 15:04 ` Alexander E. Patrakov
2007-03-19 17:26 ` OGAWA Hirofumi
2007-03-20 6:25 ` Alexander E. Patrakov
2007-03-21 16:50 ` OGAWA Hirofumi
2007-03-19 15:10 ` Alexander E. Patrakov
2007-03-19 17:36 ` OGAWA Hirofumi
2007-03-19 6:38 ` yes --help (was: [PATCH] Sanitize filesystem NLS handling) Bernd Eckenfels
2007-03-19 8:14 ` Alexander E. Patrakov
2007-03-22 12:59 ` [PATCH] Sanitize filesystem NLS handling Roman Zippel
2007-03-22 13:22 ` Alexander E. Patrakov
2007-03-22 13:49 ` Roman Zippel
2007-03-22 13:59 ` Alexander E. Patrakov
2007-03-22 15:45 ` Roman Zippel
2007-03-22 14:58 ` Alexander E. Patrakov
2007-03-22 16:07 ` Alexander E. Patrakov
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=878xdtux71.fsf@duaron.myhome.or.jp \
--to=hirofumi@mail.parknet.co.jp \
--cc=agalakhov@ifmlrs.uran.ru \
--cc=akpm@osdl.org \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=patrakov@ums.usu.ru \
--subject='Re: [PATCH] Sanitize filesystem NLS handling' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).