diff options
| author | Kevin Ballard <kevin@sb.org> | 2014-02-14 15:18:51 -0800 |
|---|---|---|
| committer | Kevin Ballard <kevin@sb.org> | 2014-02-14 21:23:37 -0800 |
| commit | d22b1646aafd51ffc85fcd24492a6211c2c0dfab (patch) | |
| tree | 51620146a800605bda3a07bc1d10c87b59760eb3 /src/libstd/rt | |
| parent | c73d5ce8ab0033d88027e6ab3db956731daf544e (diff) | |
| download | rust-d22b1646aafd51ffc85fcd24492a6211c2c0dfab.tar.gz rust-d22b1646aafd51ffc85fcd24492a6211c2c0dfab.zip | |
Use str::from_utf8_lossy() for os::env() and friends
Parse the environment by default with from_utf8_lossy. Also provide byte-vector equivalents (e.g. os::env_as_bytes()). Unfortunately, setenv() can't have a byte-vector equivalent because of Windows support, unless we want to define a setenv_bytes() that fails under Windows for non-UTF8 (or non-UTF16).
Diffstat (limited to 'src/libstd/rt')
0 files changed, 0 insertions, 0 deletions
