]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #12283 : kballard/rust/env-args-bytes, r=erickt
authorbors <bors@rust-lang.org>
Sat, 15 Feb 2014 10:36:27 +0000 (02:36 -0800)
committerbors <bors@rust-lang.org>
Sat, 15 Feb 2014 10:36:27 +0000 (02:36 -0800)
Change `os::args()` and `os::env()` to use `str::from_utf8_lossy()`.
Add new functions `os::args_as_bytes()` and `os::env_as_bytes()` to retrieve the args/env as byte vectors instead.

The existing methods were left returning strings because I expect that the common use-case is to want string handling.

Fixes #7188.


Trivial merge