Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: multibyte backwarddeletechar
- X-seq: zsh-workers 16131
- From: Clint Adams <clint@xxxxxxx>
- To: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- Subject: Re: multibyte backwarddeletechar
- Date: Wed, 24 Oct 2001 09:57:02 -0400
- Cc: "'Geoff Wing'" <gcw@xxxxxxx>, "'Zsh Hackers'" <zsh-workers@xxxxxxxxxx>
- In-reply-to: <000f01c15af1$68294d80$21c9ca95@xxxxxxxxxxxxxx>; from Andrej.Borsenkow@xxxxxxxxxxxxxx on Mon, Oct 22, 2001 at 04:02:22PM +0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20011022073231.B31806@xxxxxxxx> <000f01c15af1$68294d80$21c9ca95@xxxxxxxxxxxxxx>
> I am not sure I follow it. What you actually have to do is
>
> - on input: either get plain characters and convert them using btowc
> (that is O.K. as starting point) or read multibyte stream with mb*
> functions and convert them with mbtowc (that is needed as final result
> to be able to deal with UTF-8 encoding finally).
> - on output: use either wctob or wctomb.
>
> Looks like you did exactly opposite :-)
Indeed. I suppose I expected fgetwc to be smarter than it is.
wcwidth() seems to be a good answer to the ZLE line-width
determining problem.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author