mirror of
https://github.com/nushell/nushell
synced 2024-12-26 13:03:07 +00:00
print warning message if meet non utf-8 path (#5731)
This commit is contained in:
parent
8318d59ef1
commit
8c74b1e437
1 changed files with 4 additions and 1 deletions
|
@ -422,7 +422,10 @@ impl Iterator for Paths {
|
|||
// FIXME (#9639): How do we handle non-utf8 filenames?
|
||||
// Ignore them for now; ideally we'd still match them
|
||||
// against a *
|
||||
None => continue,
|
||||
None => {
|
||||
println!("warning: get non-utf8 filename {path:?}, ignored.");
|
||||
continue;
|
||||
}
|
||||
Some(x) => x,
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue