-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
PyPy uses wrong file name encoding on Windows #4924
Comments
Related to #3890. Is this with latest PyPy 7.3.15? |
Yes, I just downloaded it today. |
When I try with 7.3.15 in a cmd.exe terminal, I get
So that is one problem. To get your filename, I can do
Now I see a file with the name |
For me, |
The path to solving this goes via adding a test that can be run untranslated, trying to figure out where the encoding goes bad, and then fixing it. |
The following script demonstrates 2 seemingly different issues:
MARKER-ö.txt
and notMARKER-ö.txt
as is should be (and is on CPython)FileNotFoundError
, despite just being returned fromiterdir()
, likely also due to a file name encoding mismatchThe issue appears to be caused by some code erroneously using the iso-latin-1 encoding, as the UTF-8 bytes 0xC3 0xB6 decoded as latin-1 translate exactly to
ö
.The text was updated successfully, but these errors were encountered: