Author glebourgeois
Recipients glebourgeois
Date 2013-10-17.09:55:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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  :
Date User Action Args
2013-10-17 09:55:36glebourgeoissetrecipients: + glebourgeois
2013-10-17 09:55:36glebourgeoissetmessageid: <>
2013-10-17 09:55:36glebourgeoislinkissue19279 messages
2013-10-17 09:55:35glebourgeoiscreate