]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43323: Fix UnicodeEncodeError in the email module (GH-32137)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 30 Apr 2022 12:31:28 +0000 (05:31 -0700)
committerGitHub <noreply@github.com>
Sat, 30 Apr 2022 12:31:28 +0000 (05:31 -0700)
commit19a079690c29cd6a9f3fc3cb6aeb9f5a11c491e3
tree1ccae095c6767c589fba9de75feeb70f44106124
parent7149b21c2e990d1b641bc71c6ffc3cb153d0500d
bpo-43323: Fix UnicodeEncodeError in the email module (GH-32137)

It was raised if the charset itself contains characters not encodable
in UTF-8 (in particular \udcxx characters representing non-decodable
bytes in the source).
(cherry picked from commit e91dee87edcf6dee5dd78053004d76e5f05456d4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/email/_encoded_words.py
Lib/email/_header_value_parser.py
Lib/test/test_email/test__encoded_words.py
Lib/test/test_email/test_email.py
Lib/test/test_email/test_headerregistry.py
Misc/NEWS.d/next/Library/2022-03-27-12-40-16.bpo-43323.9mFPuI.rst [new file with mode: 0644]