]> granicus.if.org Git - python/commit
#11554: reactivate test_email_codecs, and make it pass.
authorR David Murray <rdmurray@bitdance.com>
Tue, 15 Mar 2011 16:20:02 +0000 (12:20 -0400)
committerR David Murray <rdmurray@bitdance.com>
Tue, 15 Mar 2011 16:20:02 +0000 (12:20 -0400)
commit56a9d7e3daff45f5fef206ea42398b4a0505fb47
tree42f16713454d229e7b90122bb350eae90ca4550b
parentde3909da6b8d09b7bcb142994ebd6daba61a23d3
#11554: reactivate test_email_codecs, and make it pass.

The fix is to charset.py, which was not doing the encoding to the
correct output character set when doing a body_encode for either
the shift-jis or euc-jp charsets.  There's also a fix for handling
a bytes input in encoders.py.

Patch by Michael Henry, comment changes by me.
Lib/email/charset.py
Lib/email/encoders.py
Lib/email/test/test_email.py
Lib/email/test/test_email_codecs.py
Lib/test/test_email.py
Misc/ACKS
Misc/NEWS