-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-103578: Fix pdb reading code with non-utf8 encoding #103581
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
Conversation
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.
Thanks for this PR!
We should probably mention in the news entry that because we use io.open_code
, we'll now trigger auditing events hooks
|
So it seems like changing it to |
Yup! I think can't hurt to mention it in the news entry, since it is a (good) change in behaviour and one that seems potentially noteworthy. |
I updated the news entry. Let me know if you think that requires extra polish! |
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.
Looks great, thanks!
Thanks @gaogaotiantian for the PR, and @hauntsaninja for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
GH-103867 is a backport of this pull request to the 3.11 branch. |
…103581) `pdb` should use `io.open_code` to open code to avoid encoding issue.
Thanks @gaogaotiantian for the PR, and @hauntsaninja for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Thanks @gaogaotiantian for the PR, and @hauntsaninja for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Thanks @gaogaotiantian for the PR, and @hauntsaninja for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry @gaogaotiantian and @hauntsaninja, I had trouble checking out the |
Sorry, @gaogaotiantian and @hauntsaninja, I could not cleanly backport this to |
Sorry @gaogaotiantian and @hauntsaninja, I had trouble checking out the |
Thanks @gaogaotiantian for the PR, and @hauntsaninja for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry, @gaogaotiantian and @hauntsaninja, I could not cleanly backport this to |
No backport needed - this was fine in 3.8-3.10 and was regressed in 3.11. |
pdb
should useio.open_code
to open code to avoid encoding issue.