Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: multibyte backwarddeletechar
- X-seq: zsh-workers 16101
- From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "'Geoff Wing'" <gcw@xxxxxxx>, "'Zsh Hackers'" <zsh-workers@xxxxxxxxxx>
- Subject: RE: multibyte backwarddeletechar
- Date: Mon, 22 Oct 2001 09:20:37 +0400
- Importance: Normal
- In-reply-to: <20011022105702.A4297@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
>
> My first thought is whether it is meaningful to use multibyte glyphs
> on the command line. And it may well be if, say, people name files
using
> multibyte glyphs and other programs (e.g. ls) display those names.
Yes. We may argue that it is non-portable but you cannot force people to
use ASCII only.
> My second is whether we truly want to handle multibyte glyphs. I
don't
> think minihacks will work. It may be a major overhaul. Not just the
ZLE
> refresh code would need updating but other areas too.
Of course. The whole string handling in zsh must be rewritten. Even
globbing won't work properly any more (`?' is not expected to match more
than one byte and character classes stop working).
The problem is it does mean overhead. I am not sure about proper
implementation. Using wchar looks portable but the immediate problem is
that conventional str* functions stop working. Using UTF-8 is appealing
due to ASCII compatibility but then you get a problem converting from/to
external charset (that implies reimplementing iconv layer for systems
that do have it natively).
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author