-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-33709: test_ntpath and test_posixpath fail in Windows with ACP!=1252 #7278
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
bpo-33709: test_ntpath and test_posixpath fail in Windows with ACP!=1252 #7278
Conversation
d19fdae
to
750291e
Compare
#7279 is backport to 2.7 (bedevere didn't detect it 'cuz it was added earlier) |
Travis failure caused by https://bugs.python.org/issue33532 |
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.
Sorry, I don't have the bandwidth to test properly your change on Windows right now, but I don't think that it's correct.
Python uses UTF-8 to encode paths on Windows since Python 3.6: https://vstinner.github.io/python36-utf8-windows.html It should not use the ANSI code page for filenames anymore (except if you explicitly opt-in for the ANSI code page).
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
f4fb2d8
to
9c9db38
Compare
I have made the requested changes; please review again. Yes, it doesn't cause test failures in stock configuration for 3.6+.
Since test code is not supposed to check if FS encoding is the default or anything before using this logic, it should work correctly in any supported configuration. |
Thanks for making the requested changes! @vstinner, @serhiy-storchaka: please review the changes made to this pull request. |
GH-7279 is a backport of this pull request to the 2.7 branch. |
I agree this should be fixed, but I'd also like to see a comment in 3.x clearly indicating that this only matters if you're using the legacy encoding mode. |
It looks to me that all comments were addressed. I'm going to merge this PR. |
Thanks @native-api for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7. |
GH-10981 is a backport of this pull request to the 3.7 branch. |
…252. (pythonGH-7278) (cherry picked from commit 8752dfb) Co-authored-by: native-api <[email protected]>
GH-10982 is a backport of this pull request to the 3.6 branch. |
…252. (pythonGH-7278) (cherry picked from commit 8752dfb) Co-authored-by: native-api <[email protected]>
…252. (GH-7278) (cherry picked from commit 8752dfb) Co-authored-by: native-api <[email protected]>
…252. (GH-7278) (cherry picked from commit 8752dfb) Co-authored-by: native-api <[email protected]>
https://bugs.python.org/issue33709