]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-77749: Fix inconsistent behavior of non-ASCII handling in EmailPolicy.fold() ...
authorRito Takeuchi <licht-t@outlook.jp>
Fri, 26 Jan 2024 15:19:41 +0000 (00:19 +0900)
committerGitHub <noreply@github.com>
Fri, 26 Jan 2024 15:19:41 +0000 (15:19 +0000)
commit504334c7be5a56237df2598d338cd494a42fca4c
tree48e41f69428ffedf8866c3e227ee8a9c0d190649
parent0bd8297a2208125f76807cdf01f72abe5c94136b
gh-77749: Fix inconsistent behavior of non-ASCII handling in EmailPolicy.fold() (GH-6986)

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

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]