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 loewis
Recipients eric.araujo, gyorkop, loewis
Date 2010-10-13.19:06:03
SpamBayes Score 5.6398857e-08
Marked as misclassified No
Message-id <1286996765.98.0.548913741854.issue10066@psf.upfronthosting.co.za>
In-reply-to
Content
Éric, I think the patch needs some rework. First, it is incorrect/incomplete: please see the Char definition for a complete list of characters that must be excluded. This then raises a Unicode vs. bytes issue, where invalid Unicode characters must be prohibited before the string actually being encoded (since apply the regex to the encoded string is not practical).

The other side of the bytes vs. string issue is that the bytes really ought to be in self.encoding, which doesn't get checked, either.

And then, it lacks tests.
History
Date User Action Args
2010-10-13 19:06:06loewissetrecipients: + loewis, eric.araujo, gyorkop
2010-10-13 19:06:05loewissetmessageid: <1286996765.98.0.548913741854.issue10066@psf.upfronthosting.co.za>
2010-10-13 19:06:03loewislinkissue10066 messages
2010-10-13 19:06:03loewiscreate