[issue7472] email.encoders.encode_7or8bit(): typo "iso-2202". "iso-2022" is correct.
R. David Murray
report at bugs.python.org
Tue Jan 19 03:12:02 CET 2010
R. David Murray <rdmurray at bitdance.com> added the comment:
Hmm. I suspect that that typo is fortunate rather than the source of a bug. As far as I can see, if a message contains valid iso-2022 characters, it will always encode to ASCII successfully and therefore be given a content-transfer-encoding of 7bit. If on the other hand it contains 8 bit characters, it should be marked as 8bit, even if it claims to be iso-2022. (Well, actually it should throw an error, but that's a different bug.)
In other words, I think the correct thing to do is to delete that if test.
Do you have a case where the code produces incorrect behavior that your patch turns into correct behavior?
----------
nosy: +r.david.murray
priority: -> normal
stage: -> test needed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7472>
_______________________________________
More information about the Python-bugs-list
mailing list