]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-113594: Fix UnicodeEncodeError in TokenList.fold() (GH-113730) (GH-113907)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 10 Jan 2024 13:21:50 +0000 (14:21 +0100)
committerGitHub <noreply@github.com>
Wed, 10 Jan 2024 13:21:50 +0000 (13:21 +0000)
commit84677ff19c0ffdc328203cdb25d16053e9c5a910
tree42aa3119f1ee7c5f165a9391faa7850b7a85cd6f
parent082998c3af5bfd163da5c0198cd10acf588a44ba
[3.12] gh-113594: Fix UnicodeEncodeError in TokenList.fold() (GH-113730) (GH-113907)

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]