Open
Description
Hi, I was looking at your wcwidth
library for comparison, since in the utf8proc library we are also implementing a similar feature (see JuliaStrings/utf8proc#2). The first disagreement that I came across between your implementation and ours was for U+00AD (soft hyphen), where you seem to give 1
>>> from wcwidth import wcwidth
>>> wcwidth(unichr(173))
1
and we give zero (a soft hyphen is used for line breaking, but is ordinarily not printed). In general, we return 0 for most characters in category Cf (formatting control characters). The wcwidth
function on MacOS 10.10.2 also returns -1
(not printable) for this code point.
Am I calling your implementation incorrectly? This is for git master
of wcwidth.