mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
c73d5ce8ab
os::args() was using str::raw::from_c_str(), which would assert if the C-string wasn't valid UTF-8. Switch to using from_utf8_lossy() instead, and add a separate function os::args_as_bytes() that returns the ~[u8] byte-vectors instead.