This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author glebourgeois
Recipients glebourgeois
Date 2013-10-17.09:55:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382003736.62.0.288611587107.issue19279@psf.upfronthosting.co.za>
In-reply-to
Content
After the fetch of a webpage with a wrongly declared encoding, the use of codecs module for a conversion crashes.

The issue is reproducible this way : 

>>> 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

Original issue here  : https://github.com/kennethreitz/requests/issues/1682
History
Date User Action Args
2013-10-17 09:55:36glebourgeoissetrecipients: + glebourgeois
2013-10-17 09:55:36glebourgeoissetmessageid: <1382003736.62.0.288611587107.issue19279@psf.upfronthosting.co.za>
2013-10-17 09:55:36glebourgeoislinkissue19279 messages
2013-10-17 09:55:35glebourgeoiscreate