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:
commit
87e3899477
48 changed files with 104 additions and 298 deletions
|
@ -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(' ');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue