public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jamie Lokier <jamie@shareable.org>
To: Norman Diamond <ndiamond@wta.att.ne.jp>
Cc: linux-kernel@vger.kernel.org
Subject: Re: UTF-8 filenames
Date: Sun, 22 Feb 2004 20:45:41 +0000	[thread overview]
Message-ID: <20040222204541.GA26793@mail.shareable.org> (raw)
In-Reply-To: <18de01c3f93f$dc6d91d0$b5ee4ca5@DIAMONDLX60>

Norman Diamond wrote:
> Consider
> converting all your ASCII filenames to UTF-16.  Let everyone share the
> short-term pain for the long-term gain.  When you get everyone to agree on
> UTF-16, it will be ugly, but it will be equal for everyone.

UTF-8 is the only sane universal encoding in unix.

UTF-16 is not an option; it's not POSIX compatible, it won't work with
the assumptions made by _all_ unix programs that deal with paths, and
in it won't by useful at all in a unix environment without rewriting
*every single program*.

Also, what would be the point?  UTF-16 as an encoding is about as
complex as UTF-8 (charcters in UTF-16 are 2-4 bytes long depending on
the character), so it's equally hard to program with correctly.

> By the way, another subthread mentioned that stty puts some stuff in the
> kernel that could be done in user space.  In Unix systems the same is true
> for IMEs, stty options specify the encoding of the output of an IME (e.g.
> EUC-JP or SJIS, which then gets forwarded as input to shells, applications,
> etc.), and whether a single backspace (or whatever character deletion
> character) deletes an entire input character instead of just deleting a
> single byte, etc.  I keep forgetting to see if Linux has the same stty
> options.  I haven't needed to set them with stty because if I need to use a
> different locale then I just open a new terminal emulator window using that
> locale.

Do you have a list or description of the specific stty options that
are used?

-- Jamie

  reply	other threads:[~2004-02-22 20:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-22 12:30 UTF-8 filenames Norman Diamond
2004-02-22 20:45 ` Jamie Lokier [this message]
2004-02-22 23:35   ` Norman Diamond
2004-02-23  6:10     ` Robin Rosenberg
2004-02-23 11:34       ` Norman Diamond
2004-02-23 12:15         ` Robin Rosenberg
2004-02-23 12:00     ` Jamie Lokier
2004-02-23 23:42       ` Norman Diamond
2004-02-24  0:02         ` Jamie Lokier

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=20040222204541.GA26793@mail.shareable.org \
    --to=jamie@shareable.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ndiamond@wta.att.ne.jp \
    /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