• K
    Use str::from_utf8_lossy() for os::env() and friends · d22b1646
    Kevin Ballard 提交于
    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).
    d22b1646
os.rs 48.4 KB