diff options
| author | klutzy <klutzytheklutzy@gmail.com> | 2014-03-22 23:13:40 +0900 |
|---|---|---|
| committer | klutzy <klutzytheklutzy@gmail.com> | 2014-03-22 23:57:13 +0900 |
| commit | cffe9e041dc62b98ac83f34c78128febda3d6122 (patch) | |
| tree | 5caec6608c10f6a499de3289108e689b262dd5d5 /src/rustllvm/RustWrapper.cpp | |
| parent | 30165e059c0a111a53020108686b6fd11fcc1d03 (diff) | |
| download | rust-cffe9e041dc62b98ac83f34c78128febda3d6122.tar.gz rust-cffe9e041dc62b98ac83f34c78128febda3d6122.zip | |
std::os: Handle FormatMessage failure
`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 #13075 Fixes #13073
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
