Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
cre4ture committed Jan 7, 2024
1 parent 52077cb commit 9efb338
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/uu/env/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -253,7 +252,7 @@ impl EnvAppData {
) -> UResult<Vec<std::ffi::OsString>> {
let mut all_args: Vec<std::ffi::OsString> = 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;
}
Expand Down

0 comments on commit 9efb338

Please sign in to comment.