Message117774
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 :( |
|
Date |
User |
Action |
Args |
2010-10-01 02:36:25 | r.david.murray | set | recipients:
+ r.david.murray, barry, pitrou, vstinner, dato, tercero12, Alex Quinn, meatballhat |
2010-10-01 02:36:24 | r.david.murray | set | messageid: <1285900584.94.0.420123837791.issue4661@psf.upfronthosting.co.za> |
2010-10-01 02:36:23 | r.david.murray | link | issue4661 messages |
2010-10-01 02:36:22 | r.david.murray | create | |
|