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

Re: Unicode problem



On 21/01/2008, Peter Stephenson <pws@xxxxxxx> wrote:
> "Mikael Magnusson" wrote:
> > Combining characters combine with the character(s) that come before
> > them.
>
> Combining characters are definitely broken at that moment:  that looks
> like a significant chunk of work (and what you say is already more than
> what I know about the subject).
>
> It looks like I was wrong: wcwidth() *is* returning zero for the
> zero-width-space character, but the refresh code is written so that that
> works the same way as width 1, so there is a fundamental problem here.
> We could do a nasty hack so that characters whose width is zero are
> treated the same way as non-printable characters, I suppose.

I don't know if this is at all helpful and everyone probably tried it
already, but all the chars Jörg posted work fine in bash (readline).
Cursoring and backspacing over a char that has combining chars on it
skips over / deletes both of them together, and it gets cursor
movement right as far as I can tell.

-- 
Mikael Magnusson


Messages sorted by: Reverse Date, Date, Thread, Author