[issue19279] UTF-7 to UTF-8 decoding crash

Guillaume Lebourgeois report at bugs.python.org
Thu Oct 17 17:07:30 CEST 2013


Guillaume Lebourgeois added the comment:

My fault, bad paste. Should have written : 

>>> content = b'+1911\' rel=\'stylesheet\' type=\'text/css\' />\n<link rel="alternate" type="application/rss+xml'
>>> codecs.utf_7_decode(content, "replace", True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: invalid maximum character passed to PyUnicode_New

----------

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


More information about the Python-bugs-list mailing list