Skip to content
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

Fix: Exception on windows with non-ascii character username #7940

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

liuxingbaoyu
Copy link

@liuxingbaoyu liuxingbaoyu commented Feb 27, 2020

Summary

Fix #7939: Exception on windows with non-ascii character username

Test plan

I modified the existing tests to make it pass.

@BYK
Copy link
Member

BYK commented Feb 28, 2020

Can you please explain what the underlying cause is and why did you chose this specific solution?

@liuxingbaoyu
Copy link
Author

@BYK The default encoding of cmd on some computers is not utf8. When encountering a non-ascii username, yarn will give an error, so I changed the encoding to 65001(utf8) through chcp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception on windows with non-ascii character username
2 participants