]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-103578: Fix pdb reading code with non-utf8 encoding (GH-103581) (#103867)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 26 Apr 2023 05:28:29 +0000 (22:28 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2023 05:28:29 +0000 (05:28 +0000)
commitf11ba1c2decd2fa6e9dfe93b9df4b80b46a290be
tree81568fb32553bcb6cabef8f9940bb7f751bb8882
parentd9aafe249994bc142927a9d92242613ae9d42d13
[3.11] gh-103578: Fix pdb reading code with non-utf8 encoding (GH-103581) (#103867)

`pdb` should use `io.open_code` to open code to avoid encoding issue.
(cherry picked from commit 31acfd78a0810f84898d36a8289e407d3754b823)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Lib/pdb.py
Lib/test/test_pdb.py
Misc/NEWS.d/next/Library/2023-04-16-18-29-04.gh-issue-103578.fly1wc.rst [new file with mode: 0644]