Message234300
Three slightly different points here:
1. Decoding trailing whitespace: My understanding is quoted-printable encoding aims to be tolerant of whitespace being added to and removed from the end of encoded lines. So I assume the “binascii” module is wrong to leave trailing whitespace in the decoded output, and the native “quopri” implementation is correct to ignore it.
2. CRLF handling: See Issue 20121. It seems CRLF newlines should be valid, and I have added a patch to that issue to make the native Python implementation handle CRLF newlines.
3. Whitespace encoding: The quopri-codec actually sets quotetabs=True. Here is a patch to document and test that, as well as correct the functions used by other codecs. |
|
Date |
User |
Action |
Args |
2015-01-19 05:46:36 | martin.panter | set | recipients:
+ martin.panter, barry, brett.cannon, jcea, r.david.murray, docs@python, BreamoreBoy, aleperalta |
2015-01-19 05:46:36 | martin.panter | set | messageid: <1421646396.55.0.543979122118.issue16473@psf.upfronthosting.co.za> |
2015-01-19 05:46:36 | martin.panter | link | issue16473 messages |
2015-01-19 05:46:36 | martin.panter | create | |
|