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 <rep...@bugs.python.org> <http://bugs.python.org/issue18183> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com