wcwidth
wcwidth copied to clipboard
Wrong width for the zero width no-break space (ZWNBSP) or byte order mark (BOM) character u+feff.
Hopefully this is enough to reproduce:
>>> import wcwidth
>>> a = u"3\ufeff4"
>>> wcwidth.wcswidth(a)
3
>>> a
'3\ufeff4'
>>> print(a)
34
>>>
Rather than:
>>> wcwidth.wcwidth(u'\ufeff')
1
I would expect:
>>> wcwidth.wcwidth(u'\ufeff')
0
This is enough information, I hope to fix this after consulting unicode specification regarding this character.
This is resolved in today's release, sorry for the long turnaround