gh-103578: Fix pdb reading code with non-utf8 encoding#103581
gh-103578: Fix pdb reading code with non-utf8 encoding#103581hauntsaninja merged 5 commits intopython:mainfrom
Conversation
|
|
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! |
hauntsaninja
left a comment
There was a problem hiding this comment.
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. |
pdbshould useio.open_codeto open code to avoid encoding issue.