-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
python -m pdb <utf-8 encoding file.py> return UnicodeDecodeError on Windows 8.1/10 (code page 936) #103578
Comments
This is an encoding issue - we can simply use |
`pdb` should use `io.open_code` to open code to avoid encoding issue.
…H-103581) `pdb` should use `io.open_code` to open code to avoid encoding issue. (cherry picked from commit 31acfd7) Co-authored-by: Tian Gao <[email protected]>
) (#103867) `pdb` should use `io.open_code` to open code to avoid encoding issue. (cherry picked from commit 31acfd7) Co-authored-by: Tian Gao <[email protected]>
…103581) `pdb` should use `io.open_code` to open code to avoid encoding issue.
Thanks again! |
This is a case that always should've gone through We should backport to 3.8+ |
I take that back - 3.8-3.10 were already fixed, it was a change in 3.11 that regressed this. So no backports required. |
Thanks for checking, sorry I could have more explicitly mentioned this! :-) |
how to replicate the issue
Python 3.11.3/3.11.2/3.11.1/3.11.0 (python-3.11.3-amd64.exe etc)
Microsoft Windows [Version 10.0.19044.2130] (Active code page: 936)
tmp.py
python -m pdb tmp.py
Linked PRs
The text was updated successfully, but these errors were encountered: