Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: multibyte backwarddeletechar



> 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