]> granicus.if.org Git - python/commit
Fix header encoding of long headers when using euc-jp and shift_jis.
authorR David Murray <rdmurray@bitdance.com>
Tue, 15 Mar 2011 01:13:03 +0000 (21:13 -0400)
committerR David Murray <rdmurray@bitdance.com>
Tue, 15 Mar 2011 01:13:03 +0000 (21:13 -0400)
commit3a6152f3b3346f00371faad8fc8a9cfb3085682f
treee876113081ac14159447af678d9568aaf8458c07
parentf2db4de4d82101a900ff3b000e39ee9207ff8bf7
Fix header encoding of long headers when using euc-jp and shift_jis.

When a header was long enough to need to be split across lines, the
input charset name was used instead of the output charset name in
the encoded words.  This make a difference only for the two charsets
above.
Lib/email/charset.py
Lib/email/test/test_email.py