]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-77749: Fix inconsistent behavior of non-ASCII handling in EmailPolicy.fold...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 26 Jan 2024 16:30:50 +0000 (17:30 +0100)
committerGitHub <noreply@github.com>
Fri, 26 Jan 2024 16:30:50 +0000 (18:30 +0200)
commitc09eae3e3823c8374204a796dae5b861cc835c2c
tree7a1a913d28d4c283690b1e79881ba08510a610d2
parentc4a616352d813d78795eb8cfb939d36d509ef012
[3.11] gh-77749: Fix inconsistent behavior of non-ASCII handling in EmailPolicy.fold() (GH-6986) (GH-114607)

It now always encodes non-ASCII characters in headers if utf8 is false.

(cherry picked from commit 504334c7be5a56237df2598d338cd494a42fca4c)

Co-authored-by: Rito Takeuchi <licht-t@outlook.jp>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/email/policy.py
Lib/test/test_email/test_policy.py
Misc/NEWS.d/next/Library/2024-01-26-16-46-21.gh-issue-77749.NY_7TS.rst [new file with mode: 0644]