Author r.david.murray
Recipients Alex Quinn, barry, dato, meatballhat, pitrou, r.david.murray, tercero12, vstinner
Date 2010-10-01.02:36:17
SpamBayes Score 1.02008e-11
Marked as misclassified No
Message-id <1285900584.94.0.420123837791.issue4661@psf.upfronthosting.co.za>
In-reply-to
Content
New version of the patch that adds many more tests, and handles non-ASCII bytes in header values by changing them to '?'s when the header value is retrieved as a string.  I think I'm half done.  Still to do: generate_bytes, and the doc updates.

By the way, another important reason to use surrogateescape rather than latin1 is that if I miss something and the byte-containing-strings escape, it will be obvious that that is what happened.  Otherwise we're back in Python2 bytes/string conflation land.

I of course make no promises about performance.  And there is an issue there in that every header value access is now wrapped in an additional function call and a regex test, at a minimum, whether there are bytes present in the input or not :(
History
Date User Action Args
2010-10-01 02:36:25r.david.murraysetrecipients: + r.david.murray, barry, pitrou, vstinner, dato, tercero12, Alex Quinn, meatballhat
2010-10-01 02:36:24r.david.murraysetmessageid: <1285900584.94.0.420123837791.issue4661@psf.upfronthosting.co.za>
2010-10-01 02:36:23r.david.murraylinkissue4661 messages
2010-10-01 02:36:22r.david.murraycreate