-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
test_os.test_win32_mkdir_700
fails on Windows
#120164
Comments
It's an encoding issue with the output of "cacls.exe". When writing to a pipe, "cacls.exe" uses the process OEM code page. The test system is configured to use the legacy ANSI/OEM code pages of the system locale, and the ANSI code page is 1251 (Cyrillic) according to the initial info displayed by the test. The corresponding OEM code page is 866. The character "æ" isn't mapped by this code page, and the On Windows, I'd expect Anyway, instead of opening this can of worms about the definition of |
Yeah, we deliberately go outside of ANSI/OEM because we want to make sure that all our APIs are going through the Unicode variants. Unfortunately,
Splitting at the last space and comparing what comes afterwards is probably going to give nicer output if/when it fails for real, but yeah, ignoring the path is probably best. |
Don't compare the path to avoid encoding issues. Co-authored-by: Eryk Sun <eryksun@gmail.com>
Don't compare the path to avoid encoding issues. (cherry picked from commit d5ba4fc) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Eryk Sun <eryksun@gmail.com>
Don't compare the path to avoid encoding issues. (cherry picked from commit d5ba4fc) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Eryk Sun <eryksun@gmail.com>
Fixed by d5ba4fc |
Don't compare the path to avoid encoding issues. Co-authored-by: Eryk Sun <eryksun@gmail.com>
Don't compare the path to avoid encoding issues. Co-authored-by: Eryk Sun <eryksun@gmail.com>
Bug report
Bug description:
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs
test_os.test_win32_mkdir_700
#120177The text was updated successfully, but these errors were encountered: