Skip to content

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

Open
liuxingbaoyu wants to merge 2 commits intoyarnpkg:masterfrom
liuxingbaoyu:master
Open

Fix: Exception on windows with non-ascii character username#7940
liuxingbaoyu wants to merge 2 commits intoyarnpkg:masterfrom
liuxingbaoyu:master

Conversation

@liuxingbaoyu
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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