[issue30608] argparse calculates string widths incorrectly

Steven D'Aprano report at bugs.python.org
Fri Jun 9 07:07:23 EDT 2017


Steven D'Aprano added the comment:

By the way, perhaps a simpler demonstration which is more likely to render correctly on most people's systems would be to use Latin-1 combining characters:

py> s1 = 'àéîõü'
py> s2 = unicodedata.normalize('NFD', s1) # decompose into combining chars
py> s1, s2
('àéîõü', 'àéîõü')
py> assert len(s1) == 5 and len(s2) == 10
py>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30608>
_______________________________________


More information about the Python-bugs-list mailing list