-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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, tools: tools\test.py --help fails on Windows in shell with Unicode codepage #12786
Comments
cc/ @nodejs/platform-windows @nodejs/python |
I like this bug, great work @vsemozhetbyt |
This is what's called a can of worms... So it's a Windows/Python bug. We can fix each tool with a header: import codecs
codecs.register(lambda name: codecs.lookup('utf-8') if name == 'cp65001' else None) or set an environment var: set PYTHONIOENCODING=UTF-8 I recommend we document this and suggest the dev to set the env var... |
-1 on adding hacks to work around Python bugs. |
Why not try the workarounds/fixes referenced in that linked Python issue? |
Can we require Python 3.6 to run tests? |
Except |
IMHO a comment about setting set PYTHONIOENCODING=UTF-8 with the right keywords ( |
Should this remain open? |
Is there a version of Windows where the default code page is unicode (cp65001) yet? If not, I'd close this as something the user brought onto himself. Not nice, but there really is no possible solution until we can require python3.6 for this script. |
hopefully we'll get python3 compatibility soon, so this be a non issue |
cmd.exe
with Unicode codepage by default:The text was updated successfully, but these errors were encountered: