]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-113594: Fix UnicodeEncodeError in TokenList.fold() (GH-113730) (GH-113908)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 10 Jan 2024 13:24:17 +0000 (14:24 +0100)
committerGitHub <noreply@github.com>
Wed, 10 Jan 2024 13:24:17 +0000 (13:24 +0000)
commit435e891b32318b4a0fed2843d0cb37ee21c07e4b
tree2344eae064b52dee5ae84f4ec269e1593fc07225
parentc92a473a71a0c395df57d31cd49900057da3c25b
[3.11] gh-113594: Fix UnicodeEncodeError in TokenList.fold() (GH-113730) (GH-113908)

It occurred when try to re-encode an unknown-8bit part combined with non-unknown-8bit part.
(cherry picked from commit e9d5b6ea2d68564f176fdf70c2d7028e060c62b5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/email/_header_value_parser.py
Lib/test/test_email/test__header_value_parser.py
Misc/NEWS.d/next/Library/2024-01-05-12-42-07.gh-issue-113594.4t8HiR.rst [new file with mode: 0644]