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

Re: Unicode problem



On 2008-01-21 14:45:21 +0000, Peter Stephenson wrote:
> It looks like I was wrong: wcwidth() *is* returning zero for the
> zero-width-space character,

This depends on the OS. On Mac OS X, for instance, U+FEFF is regarded
as a control character and wcwidth() returns -1. And the wcwidth of
the combining character U+0300 is 1 (this is also the case of HP-UX).

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



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