Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Properly escape non-utf8 file names #463
Right now, anything that isn't valid UTF-8 gets its invalid characters replaced with replacement characters. IMHO the way things should be done is to have two ways of displaying things:
If a path is invalid UTF-8, it will be shell-quoted always. If it contains whitespace, then it will be quoted. Otherwise, it will not be quoted.
There should be an