Skip to content

[3.13] gh-150771: Fix email serialization for shift_jis and euc-jp (GH-151120) - #152953

Merged
Yhg1s merged 2 commits into
python:3.13from
bhuvi27:backport-3.13-gh-150771
Aug 4, 2026
Merged

[3.13] gh-150771: Fix email serialization for shift_jis and euc-jp (GH-151120)#152953
Yhg1s merged 2 commits into
python:3.13from
bhuvi27:backport-3.13-gh-150771

Conversation

@bhuvi27

@bhuvi27 bhuvi27 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Manual backport of #151120 to 3.13 (miss-islington couldn't cherry-pick cleanly).

Encode the payload with output_charset instead of input_charset in set_text_content().

The test_set_text_charset_cp949 test from the main-branch fix is omitted because it depends on gh-53144 (charset support improvements), which is not on 3.13.

…-jp (pythonGH-151120)

Encode the payload with output_charset instead of input_charset.
(cherry picked from commit 0777a58)
@Yhg1s

Yhg1s commented Aug 4, 2026

Copy link
Copy Markdown
Member

I'm not sure what the fuzzer results are about, and I'm unable to reproduce the failures locally. I don't see how this PR could have introduced those crashes in any case, so I'm merging despite the failures.

@Yhg1s
Yhg1s merged commit afbced6 into python:3.13 Aug 4, 2026
42 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants