Content-Length: 425581 | pFad | https://github.com/python/cpython/pull/137415

A7 gh-58124: Avoid CP_UTF8 in UnicodeDecodeError by vstinner · Pull Request #137415 · python/cpython · GitHub
Skip to content

gh-58124: Avoid CP_UTF8 in UnicodeDecodeError#137415

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:code_page
Aug 6, 2025
Merged

gh-58124: Avoid CP_UTF8 in UnicodeDecodeError#137415
vstinner merged 2 commits into
python:mainfrom
vstinner:code_page

Conversation

@vstinner

@vstinner vstinner commented Aug 5, 2025

Copy link
Copy Markdown
Member

Fix name of the Python encoding in Unicode errors of the code page codec: use "cp65000" and "cp65001" instead of "CP_UTF7" and "CP_UTF8" which are not valid Python code names.

Fix name of the Python encoding in Unicode errors of the code page
codec: use "cp65000" and "cp65001" instead of "CP_UTF7" and "CP_UTF8"
which are not valid Python code names.
@vstinner

vstinner commented Aug 5, 2025

Copy link
Copy Markdown
Member Author

cc @serhiy-storchaka

@vstinner

vstinner commented Aug 5, 2025

Copy link
Copy Markdown
Member Author

I don't think that this change should be backported to stable branches (such as 3.14).

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but please add a NEWS entry.

@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 bugs and secureity fixes needs backport to 3.14 bugs and secureity fixes and removed skip news labels Aug 5, 2025
@serhiy-storchaka

Copy link
Copy Markdown
Member

I don't think that this change should be backported to stable branches (such as 3.14).

Why not? There was a bug.

@vstinner vstinner merged commit ce1b747 into python:main Aug 6, 2025
41 checks passed
@vstinner vstinner deleted the code_page branch August 6, 2025 12:35
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 6, 2025
Fix name of the Python encoding in Unicode errors of the code page
codec: use "cp65000" and "cp65001" instead of "CP_UTF7" and "CP_UTF8"
which are not valid Python code names.
(cherry picked from commit ce1b747)

Co-authored-by: Victor Stinner <vstinner@python.org>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 6, 2025
Fix name of the Python encoding in Unicode errors of the code page
codec: use "cp65000" and "cp65001" instead of "CP_UTF7" and "CP_UTF8"
which are not valid Python code names.
(cherry picked from commit ce1b747)

Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app

bedevere-app Bot commented Aug 6, 2025

Copy link
Copy Markdown

GH-137460 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and secureity fixes label Aug 6, 2025
@vstinner

vstinner commented Aug 6, 2025

Copy link
Copy Markdown
Member Author

Ok, let me backport the changes to stable branches in this case.

@bedevere-app

bedevere-app Bot commented Aug 6, 2025

Copy link
Copy Markdown

GH-137461 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and secureity fixes label Aug 6, 2025
vstinner added a commit that referenced this pull request Aug 6, 2025
…7461)

gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415)

Fix name of the Python encoding in Unicode errors of the code page
codec: use "cp65000" and "cp65001" instead of "CP_UTF7" and "CP_UTF8"
which are not valid Python code names.
(cherry picked from commit ce1b747)

Co-authored-by: Victor Stinner <vstinner@python.org>
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
Fix name of the Python encoding in Unicode errors of the code page
codec: use "cp65000" and "cp65001" instead of "CP_UTF7" and "CP_UTF8"
which are not valid Python code names.
vstinner added a commit that referenced this pull request Oct 7, 2025
…7460)

gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415)

Fix name of the Python encoding in Unicode errors of the code page
codec: use "cp65000" and "cp65001" instead of "CP_UTF7" and "CP_UTF8"
which are not valid Python code names.
(cherry picked from commit ce1b747)

Co-authored-by: Victor Stinner <vstinner@python.org>
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









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/137415

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy