Zsh Mailing List Archive
Messages sorted by:
Re: multibyte backwarddeletechar
- X-seq: zsh-workers 16098
- From: Clint Adams <clint@xxxxxxx>
- To: Geoff Wing <gcw@xxxxxxx>
- Subject: Re: multibyte backwarddeletechar
- Date: Sun, 21 Oct 2001 21:50:22 -0400
- Cc: Zsh Hackers <zsh-workers@xxxxxxxxxx>
- In-reply-to: <20011022105702.A4297@xxxxxxxxxxxxxxx>; from gcw@xxxxxxx on Mon, Oct 22, 2001 at 10:57:02AM +1000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20011021114254.A17952@xxxxxxxx> <20011022105702.A4297@xxxxxxxxxxxxxxx>
> 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.
> 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, it
> may not be as much work as I think but would definitely need some
> discussion about what should and should not be handled.
For one thing, the %D escape in my prompt is substituted with
multibyte glyphs in the relevant locales. That in itself
poses a potential width calculation problem even if the user
doesn't input any multibyte characters.
As for the command line:
To delete a multi-byte character you have to press backspace multiple times.
Beside normal irritation this can lead to you feeding non-conformant utf8
streams into programs expecting conformant utf8.
Hard to explain. The following is probally totaly messed up but I'm trying
to pipe the single letter 'latin small letter a with ring above' which is
0xE5 in iso8859-1 into od -x. The first time I get the real letter on the
command line and everything seems ok. The second time I get the right letter
on the command line and press backspace once before continuing with '|'.
plugh% echo -n Ã¥| od -x
plugh% echo -n | od -x
Messages sorted by: