Skip to content

[3.14] gh-145831: email.quoprimime: decode() leaves stray \r when eol='\r\n' (GH-145832)#148312

Merged
bitdancer merged 1 commit intopython:3.14from
miss-islington:backport-1a0edb1-3.14
Apr 10, 2026
Merged

[3.14] gh-145831: email.quoprimime: decode() leaves stray \r when eol='\r\n' (GH-145832)#148312
bitdancer merged 1 commit intopython:3.14from
miss-islington:backport-1a0edb1-3.14

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Apr 9, 2026

decoded[:-1] only strips one character, leaving a stray \r when eol
is two characters. Fix: decoded[:-len(eol)].
(cherry picked from commit 1a0edb1)

Co-authored-by: Stefan Zetzsche 120379523+stefanzetzsche@users.noreply.github.com

…`eol='\r\n'` (pythonGH-145832)

decoded[:-1] only strips one character, leaving a stray \r when eol
is two characters. Fix: decoded[:-len(eol)].
(cherry picked from commit 1a0edb1)

Co-authored-by: Stefan Zetzsche <120379523+stefanzetzsche@users.noreply.github.com>
@miss-islington miss-islington requested a review from a team as a code owner April 9, 2026 20:22
@bitdancer bitdancer merged commit e8f3f76 into python:3.14 Apr 10, 2026
53 checks passed
@miss-islington miss-islington deleted the backport-1a0edb1-3.14 branch April 10, 2026 12:50
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.

3 participants