You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use std::io;fnmain(){let output = Path::new("badpath\\a.txt");// badpath doesn't existlet _ret = io::File::create(&output);// so this is expected to return Err}
task '<main>' failed at '[15100] FormatMessage failure', C:\home\stone\rust-vanilla\src\libstd\os.rs:743
Reproduced on rust revision 092afdb, windows 8.1 korean locale.
`FormatMessageW()` is called by `std::os::last_os_error()` to convert
errno into string, but the function may fail on non-english locale.
I don't know why it fails, but anyway it's better to return errno
than to `fail!()` in the case.
Fixes#13075Fixes#13073
Reproduced on rust revision 092afdb, windows 8.1 korean locale.
cc #13073
The text was updated successfully, but these errors were encountered: