Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.12] gh-111942: Fix SystemError in the TextIOWrapper constructor (GH-112061)#112085

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedNov 14, 2023
edited by bedevere-appbot
Loading

In non-debug more the check for the "errors" argument is skipped,
and then PyUnicode_AsUTF8() can fail, but its result was not checked.

(cherry picked from commit9302f05)

Co-authored-by: Serhiy Storchakastorchaka@gmail.com
Co-authored-by: Victor Stinnervstinner@python.org

…thonGH-112061)In non-debug more the check for the "errors" argument is skipped,and then PyUnicode_AsUTF8() can fail, but its result was not checked.(cherry picked from commit9302f05)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner
Copy link
Member

This PR uses_PyUnicode_AsUTF8NoNUL() which doesn't exist in Python 3.12. I created#112089 backport instead.

auto-merge was automatically disabledNovember 14, 2023 21:00

Pull request was closed

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
awaiting reviewtype-bugAn unexpected behavior, bug, or error
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@miss-islington@vstinner@serhiy-storchaka

[8]ページ先頭

©2009-2025 Movatter.jp