-
Notifications
You must be signed in to change notification settings - Fork 486
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
On windows cmd.exe, cargo build cal msvc cl, the output encoding are invalid. #552
Comments
Can you try setting |
I am sorry that the newest version of visual studio doesn't take care of VSLANG=1033
|
If that doesn't work unfortunately I don't know how to fix this :( |
@lygstate Can you double-check that you have Visual Studio English language pack installed (additionally to whatever your primary language pack) ? This VSLANG=1033 trick still works fine for me on my machine with VS2019. |
@crlf0710 I had same issue, installing English language pack in the Visual Studio Installer solved it. I think |
Makes sense. I'd take a PR for this. |
See also #809 (comment) which I think is related. We may be able to handle printing in the non UTF-8 case. But there's some complexity because |
I was looking into this issue and noticed that cl.exe is behaving strangely. I am a Japanese user and when I run cl at the command prompt, I get
at the command prompt. However, when I run
If Presumably, cl.exe uses the relatively new console API to output both UTF-16 strings and strings with legacy encoding, and the parent process can use any of the APIs to get UTF-16 strings. I will try this later to see if this works. |
The text was updated successfully, but these errors were encountered: