diff --git a/src/uu/env/src/env.rs b/src/uu/env/src/env.rs index 14b277a5b6b..6bb724a78ae 100644 --- a/src/uu/env/src/env.rs +++ b/src/uu/env/src/env.rs @@ -19,7 +19,6 @@ use std::ffi::OsString; use std::io::{self, Write}; use std::iter::Iterator; use std::ops::Deref; -use std::os::unix::ffi::OsStrExt; #[cfg(unix)] use std::os::unix::process::ExitStatusExt; use std::process::{self}; @@ -253,7 +252,7 @@ impl EnvAppData { ) -> UResult> { let mut all_args: Vec = Vec::new(); for arg in original_args { - match arg.as_bytes() { + match arg.as_encoded_bytes() { b if check_and_handle_string_args(b, "--split-string", &mut all_args, None)? => { self.had_string_argument = true; }