]> git.lizzy.rs Git - rust.git/commit
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)
commitfba32ea79f1828ef441d91abca3635fad57f323d
tree1d07a3053f3492b25816a46f912df95bd208bd6e
parentc9f13b47febb81ef339a15adf0f6ad7a2265c46d
parentd22b1646aafd51ffc85fcd24492a6211c2c0dfab
auto merge of #12283 : kballard/rust/env-args-bytes, r=erickt

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.