mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Kleikamp <shaggy@austin.ibm.com>
To: kernel@mikebell.org
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: JFS default behavior / UTF-8 filenames
Date: Tue, 24 Feb 2004 08:44:10 -0600	[thread overview]
Message-ID: <1077633850.2618.16.camel@shaggy.austin.ibm.com> (raw)
In-Reply-To: <20040222192237.GC540@tinyvaio.nome.ca>

On Sun, 2004-02-22 at 13:22, kernel@mikebell.org wrote:

> 
> And that's why I was saying I think UTF-8 mode is the "least broken" for
> any filesystem that stores filenames in a specific encoding rather than
> "as the client submitted it". And most especially for UCS-2/UTF-16
> filesystems.

I receive a lot of complaints when JFS does not accept names because
they contain an "invalid" character.  Defaulting to UTF-8 will cause
some non-utf-8 filenames to be rejected.  The change I made makes the
default behavior sane and posix-compliant.  It won't make everybody
happy, but it will provide predicable, sane behavior.

> I think the default for a filesystem should be something that absolutely
> will not disappear your files. So for NTFS/JFS, it should be UTF-8. And
> if a traditional UNIX filesystem wants to do a UTF-8 only mode, I think
> ideally it should be done at mkfs time rather than mount time.

The biggest problem with changing the default now is that the behavior
was unpredictable before.  Now, the default behavior will not allow
filenames to be stored with UCS-2 characters greater than 0x00ff, so
there won't be inaccessible files unless the iocharset option has been
used.  This allows the average user to get sane behavior, but allows the
flexibility of accessing the file system in a specific character set for
those users who know what they are doing.
-- 
David Kleikamp
IBM Linux Technology Center


      reply	other threads:[~2004-02-24 14:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-15 23:03 JFS default behavior Nicolas Mailhot
2004-02-16  3:45 ` Jan Knutar
2004-02-16  8:30   ` Nicolas Mailhot
2004-02-16  8:54     ` Valdis.Kletnieks
2004-02-16  6:21 ` jw schultz
2004-02-16 15:55   ` Jamie Lokier
2004-02-17  6:47     ` jw schultz
2004-02-17 21:37       ` Jamie Lokier
2004-02-17 22:12         ` Linus Torvalds
2004-02-18  9:59           ` Jamie Lokier
2004-02-18 15:54             ` Linus Torvalds
2004-02-18 23:58               ` Jamie Lokier
2004-02-19 10:59 ` JFS default behavior / UTF-8 filenames kernel
2004-02-19 14:05   ` Dave Kleikamp
2004-02-19 23:47     ` kernel
2004-02-20 15:00       ` Dave Kleikamp
2004-02-22 19:22         ` kernel
2004-02-24 14:44           ` Dave Kleikamp [this message]

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=1077633850.2618.16.camel@shaggy.austin.ibm.com \
    --to=shaggy@austin.ibm.com \
    --cc=kernel@mikebell.org \
    --cc=linux-kernel@vger.kernel.org \
    /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®