-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Test run-pass\process-remove-from-env.rs fails on Windows with non-English locale #25268
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
Comments
Hm interesting! This probably isn't so much connected to locales so much that something in the environment/output isn't valid UTF-8. Could you get a backtrace of this failure? I would be surprised if this was coming from |
The problem may actually reside in compiletest, it captures the output of the test and then can interpret it incorrectly. If the test is run as a standalone program outside of the test suite then no panic happens and the test works as expected. I'm still investigating. Here's the backtrace, but it's not very helpful:
|
Aha! It looks like you are 100% correct. I suspect it would be fine for |
Fixes #25268 and a couple of similar test errors r? @alexcrichton
https://github.com/rust-lang/rust/blob/master/src/test/run-pass/process-remove-from-env.rs
The failure happens in
Command::spawn
when the output of the commandcmd /c set
used in the test contains cyrillic letters.Probably some pieces ofChanging the system locale to English (USA) or replacingprocess
use locale-dependent encoding (Windows-1251 in this case) instead of unicode.cmd
with something likeecho foo
makes this error go away.cc @alexcrichton
The text was updated successfully, but these errors were encountered: