-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-124476: Fix decoding from the locale encoding in the C.UTF-8 locale #132477
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-124476: Fix decoding from the locale encoding in the C.UTF-8 locale #132477
Conversation
Misc/NEWS.d/next/Core_and_Builtins/2025-04-13-17-18-01.gh-issue-124476.fvGfQ7.rst
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
It seems correct to me to generate a surrogate character (U+DCxx) when surrogateescape is used (when errors is _Py_ERROR_SURROGATEESCAPE
) and _Py_mbrtowc()
fails with INCOMPLETE_CHARACTER
.
…e-124476.fvGfQ7.rst Co-authored-by: Stan Ulbrych <[email protected]>
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to
|
…C.UTF-8 locale (pythonGH-132477) (cherry picked from commit 102f825) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-132528 is a backport of this pull request to the 3.13 branch. |
Uh oh!
There was an error while loading. Please reload this page.