-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle non-UTF-8 in quoting style #6817
Comments
The first part is a special case of #6639. |
Indeed ! I am working on a fix, but this requires a big change to The only issue I have so far is that I am making use of slice::utf8_chunks for which I need MSRV >= 1.79, so I guess we'll have to wait. If you want to take a look: diff |
This is fixed by #6882 |
Right now,
quoting-style
usesString::from_utf8_lossy
to handle the quoting of given inputs, which replaces the non UTF-8 characters with the replacement character\u{FFFD}
.It may a problem for several utils:
ls
cksum
andhashsum
checkingHere, quoting is used to print in stderr when a file is a directory or not found
There are probably some other places where correctly quoting non UTF-8 characters might prove useful.
The text was updated successfully, but these errors were encountered: