mirror of
https://github.com/BLAKE3-team/BLAKE3
synced 2024-09-26 21:20:56 +02:00
Warn of any unicode replacement characters
Unicode replacement characters mean --check is not able to check the file so warn when generating them. This time with NAME. Fixes issue #281
This commit is contained in:
parent
e366618d22
commit
ebff7467cb
@ -340,6 +340,9 @@ fn filepath_to_string(filepath: &Path) -> FilepathString {
|
||||
filepath_string = filepath_string.replace('\\', "\\\\").replace('\n', "\\n");
|
||||
is_escaped = true;
|
||||
}
|
||||
if filepath_string.contains('<27>') {
|
||||
eprintln!("{}: {}: must be valid unicode and not contain '<27>' for --check", NAME, filepath_string);
|
||||
}
|
||||
FilepathString {
|
||||
filepath_string,
|
||||
is_escaped,
|
||||
|
Loading…
Reference in New Issue
Block a user