]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-53144: Improve charset support in the email package (GH-149942) (GH-150967)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 5 Jun 2026 13:22:33 +0000 (15:22 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Jun 2026 13:22:33 +0000 (13:22 +0000)
commit68f814eb7151d7bd3e0780c78fcd9571f0312496
tree58bc7ee086d12a01b727f5ae269b99326a61f995
parente8384cf1a0349871a7ec1d857b8e3c7037d727e9
[3.15] gh-53144: Improve charset support in the email package (GH-149942) (GH-150967)

Defer to the codecs module for all aliases.
Use MIME/IANA names for all IANA registered charsets.
Fix email.contentmanager.set_text_content().
(cherry picked from commit c195a046f81d986dce22743d85e2500fe282e8a9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/email/charset.py
Lib/email/contentmanager.py
Lib/test/test_email/test_asian_codecs.py
Lib/test/test_email/test_contentmanager.py
Lib/test/test_email/test_email.py
Misc/NEWS.d/next/Library/2026-05-17-12-37-59.gh-issue-53144.c5tr1p.rst [new file with mode: 0644]