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 r.david.murray
Recipients barry, l0nwlf, r.david.murray, ynkdir
Date 2010-04-07.16:48:18
SpamBayes Score 1.029947e-07
Marked as misclassified No
Message-id <1270658901.02.0.0608988979044.issue7472@psf.upfronthosting.co.za>
In-reply-to
Content
After tracing the code further I now understand what the original patch is doing, and yes the spelling correction is the correct fix.  (The issue is that there are two different encodings involved: the input encoding in which the body is encoded when encode_7or8 bit is called, and the 'output' encoding that will be used to render the message when it is serialized to bytes.  In the case of iso-2022, it is used as the output encoding for at least one input encoding that is an eight bit encoding.  iso-2022 is pretty much the *only* encoding that appears as an output encoding different from the input encoding.)

Applying the patch will have to wait until the branch unfreezes.  I also think that I will not apply it to 2.6, since it is not fixing a bug that anyone has reported as breaking their code, but does represent a behavior change.

Since we have proven in the course of analyzing this that the code is untested, perhaps someone would like to write some unit tests for it?
History
Date User Action Args
2010-04-07 16:48:21r.david.murraysetrecipients: + r.david.murray, barry, ynkdir, l0nwlf
2010-04-07 16:48:21r.david.murraysetmessageid: <1270658901.02.0.0608988979044.issue7472@psf.upfronthosting.co.za>
2010-04-07 16:48:19r.david.murraylinkissue7472 messages
2010-04-07 16:48:18r.david.murraycreate