OSDN Git Service

Add utf8 support to ls -C.
authorRob Landley <rob@landley.net>
Sun, 20 Jul 2014 21:34:36 +0000 (16:34 -0500)
committerRob Landley <rob@landley.net>
Sun, 20 Jul 2014 21:34:36 +0000 (16:34 -0500)
commit8fb779954829f923ee2935d81cd4446973aaa01f
tree6085977954403017154611a2dcca06bcf6188f65
parent87c06e15329a0ef39385408a2e41be82e56a5418
Add utf8 support to ls -C.

Use wcwidth() instead of strlen(), and extend the -q substitution to also
whiteout nonprintable characters that are nonparseable utf8 snippets.
lib/portability.h
toys/posix/ls.c