mozilla/rust — pull request #12283 by kballard (2014-02-15 03:28:57+00:00)
Title: Treat args/env as lossy UTF-8

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.