]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] 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:32 +0000 (17:30 +0100)
committerGitHub <noreply@github.com>
Fri, 26 Jan 2024 16:30:32 +0000 (18:30 +0200)
commitfd8aafd64d23e7de51566c7099c704d48da86eea
tree75640919672f0b3d44abee11e7c369e33d0174f4
parent61f8f58f812dab2c201a9c64ebe69e3271a6663c
[3.12] gh-77749: Fix inconsistent behavior of non-ASCII handling in EmailPolicy.fold() (GH-6986) (GH-114606)

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]