diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-03-14 07:03:27 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-03-14 07:03:27 (GMT) |
commit | e2922835b0d499d6f6d108e89ccb424f74b54c71 (patch) | |
tree | 23f15f18d1ec1a8f0f7bc03b2c5cd9ed7e772836 /Misc | |
parent | b20a019d467daad5a6e2856a36fca4d90904f969 (diff) | |
parent | 7441a7aedd251d529eb14eff9a16708e9cb32409 (diff) | |
download | cpython-e2922835b0d499d6f6d108e89ccb424f74b54c71.zip cpython-e2922835b0d499d6f6d108e89ccb424f74b54c71.tar.gz cpython-e2922835b0d499d6f6d108e89ccb424f74b54c71.tar.bz2 |
Merge #14291: if a header has non-ascii unicode, default to CTE using utf-8
In Python2, if a unicode string was assigned as the value of a header,
email would automatically CTE encode it using the UTF8 charset.
This capability was lost in the Python3 translation, and this patch
restores it.
Patch by Ali Ikinci, assisted by R. David Murray.
I also added a fix for the mailbox test that was depending (with a comment
that it was a bad idea to so depend) on non-ASCII causing message_from_string
to raise an error. It now uses support.patch to induce an error during
message serialization.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -470,6 +470,7 @@ Gerhard Häring Fredrik Håård Catalin Iacob Mihai Ibanescu +Ali Ikinci Lars Immisch Bobby Impollonia Meador Inge @@ -24,6 +24,9 @@ Core and Builtins Library ------- +- Issue #14291: Email now defaults to utf-8 for non-ASCII unicode headers + instead of raising an error. This fixes a regression relative to 2.7. + - Issue #989712: Support using Tk without a mainloop. - Issue #5219: Prevent event handler cascade in IDLE. |