-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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-41385: Fix test_executable_without_cwd on Windows #21608
bpo-41385: Fix test_executable_without_cwd on Windows #21608
Conversation
🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 5df4305 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
"sys.stdout.write(os.getcwd()); " | ||
"buf = sys.stdout.buffer; " | ||
"buf.write(os.getcwd().encode()); " | ||
"buf.flush(); " |
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.
You could also force standard I/O encoding to use UTF-8 with the arguments env={**os.environ, 'PYTHONIOENCODING': 'utf-8'}
and encoding='utf-8'
.
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9. |
(cherry picked from commit b1a8730) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-21625 is a backport of this pull request to the 3.9 branch. |
GH-21626 is a backport of this pull request to the 3.8 branch. |
(cherry picked from commit b1a8730) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
https://bugs.python.org/issue41385