On Sun, 15 Feb 2015 12:56:05 +0000
Ralph Eastwood <tcmreastwood_AT_gmail.com> wrote:
Hey Ralph,
> ls -q replaces non printable characters with '?'; I'm not sure how to
> make files with non-printable characters as yet, all I know is this
> code path works with input that does not have non-printable
> characters.
well, creating files with non-printable characters in their filenames
is trivial and Alexandre already gave insight into it.
The only real way to do this is to also look at wide characters. As you
may have already seen, I finished up libutf in regard to the is*rune()-
functions, so just go through each filename _rune by rune_ and check if
isprintrune() is false, replacing the rune with '?'.
You probably need to implement a runestrtoutf()-function. I could do it
for you in case you need it.
Cheers
FRIGN
--
FRIGN <dev_AT_frign.de>
Received on Sun Feb 15 2015 - 15:53:55 CET