]> 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:37 +0000 (05:31 -0700)
committerGitHub <noreply@github.com>
Sat, 30 Apr 2022 12:31:37 +0000 (05:31 -0700)
commit3d0a5f73f5436eac1c6c0b4b6210e3b3518dcc83
treea9f1387dfdaaa5e0db0360b2e496bbcab7b355eb
parent869a89433899950f925d177bacd8fdd43affe827
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]