mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 18:15:04 +02:00
print warning message if meet non utf-8 path (#5731)
This commit is contained in:
@ -422,7 +422,10 @@ impl Iterator for Paths {
|
|||||||
// FIXME (#9639): How do we handle non-utf8 filenames?
|
// FIXME (#9639): How do we handle non-utf8 filenames?
|
||||||
// Ignore them for now; ideally we'd still match them
|
// Ignore them for now; ideally we'd still match them
|
||||||
// against a *
|
// against a *
|
||||||
None => continue,
|
None => {
|
||||||
|
println!("warning: get non-utf8 filename {path:?}, ignored.");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Some(x) => x,
|
Some(x) => x,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user