mirror of
https://github.com/nushell/nushell
synced 2025-01-14 06:04:09 +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?
|
// 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,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue