diff options
| author | klutzy <klutzytheklutzy@gmail.com> | 2013-09-16 00:02:58 +0900 |
|---|---|---|
| committer | klutzy <klutzytheklutzy@gmail.com> | 2013-09-16 03:30:17 +0900 |
| commit | f3c88825337c295850de546bd3d8745c8cad1224 (patch) | |
| tree | b28ff9ad5e8495220ab4fe7fef88c20ae1d0c6af /src/rustllvm/RustWrapper.cpp | |
| parent | 1e745f16790f22fc10652a6ffae36bf5572255bb (diff) | |
| download | rust-f3c88825337c295850de546bd3d8745c8cad1224.tar.gz rust-f3c88825337c295850de546bd3d8745c8cad1224.zip | |
std::os: Use unicode for last_os_error() on Win32
FormatMessageA may return non-ascii message, which is encoded as system code page, not utf8. This may cause `assert!(is_utf8(v))` failure on some non-English machines. This patch replaces it with FormatMessageW, which returns utf-16 message. Fixes `make check-stage2-std` failure on my machine. :)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
