1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-16 03:36:18 +00:00

Merge pull request #3832 from tertsdiepraam/simplify-encoding-handling

Simplify invalid encoding handling
This commit is contained in:
Sylvestre Ledru 2022-08-17 18:59:59 +02:00 committed by GitHub
commit 87e3899477
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 104 additions and 298 deletions

View file

@ -30,7 +30,7 @@ use std::rc::Rc;
use std::thread::sleep;
use std::time::Duration;
use tempfile::TempDir;
use uucore::{Args, InvalidEncodingHandling};
use uucore::Args;
#[cfg(windows)]
static PROGNAME: &str = concat!(env!("CARGO_PKG_NAME"), ".exe");
@ -1021,8 +1021,7 @@ impl UCommand {
let strings = args
.iter()
.map(|s| s.as_ref().to_os_string())
.collect_str(InvalidEncodingHandling::Ignore)
.accept_any();
.collect_ignore();
for s in strings {
self.comm_string.push(' ');