diff options
| author | Kevin Ballard <kevin@sb.org> | 2014-02-14 14:42:40 -0800 |
|---|---|---|
| committer | Kevin Ballard <kevin@sb.org> | 2014-02-14 21:23:37 -0800 |
| commit | c73d5ce8ab0033d88027e6ab3db956731daf544e (patch) | |
| tree | c250557bbb8be9072ecd5e3b02b042cf1d23330a /src/rustllvm/PassWrapper.cpp | |
| parent | 8cc8eb7b8e57a09652f18c466c37946e24ae8021 (diff) | |
| download | rust-c73d5ce8ab0033d88027e6ab3db956731daf544e.tar.gz rust-c73d5ce8ab0033d88027e6ab3db956731daf544e.zip | |
Use str::from_utf8_lossy() in os::args(), add os::args_as_bytes()
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.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
