[issue18183] Calling .lower() on certain unicode string raises SystemError
Amaury Forgeot d'Arc
report at bugs.python.org
Mon Jun 10 17:57:23 CEST 2013
Amaury Forgeot d'Arc added the comment:
>>> a = chr(0x84b2e)+chr(0x109710)
>>> a.lower()
SystemError: invalid maximum character passed to PyUnicode_New
The MAX_MAXCHAR() macro only works for 'maxchar' values, like 0xff, 0xffff... in do_upper_or_lower() it's used with arbitrary UCS4 values.
----------
nosy: +amaury.forgeotdarc, haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18183>
_______________________________________
More information about the Python-bugs-list
mailing list