1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00
freebsd/bin/ls
Tim J. Robbins 107409f46e Treat filenames as multibyte character strings (according to the current
LC_CTYPE setting) when determining which characters are printable.
This is an often-requested feature.

Use wcwidth() to determine the number of column positions a character
takes up, although there are still a few places left where we assume
1 byte = 1 column position, e.g. line-wrapping when handling the -m option.

The error handling here is somewhat more complicated than usual: we do
our best to show what we can of a filename in the presence of conversion
errors, instead of simply aborting.
2004-05-02 11:25:37 +00:00
..
cmp.c Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
extern.h Treat filenames as multibyte character strings (according to the current 2004-05-02 11:25:37 +00:00
ls.1 Treat filenames as multibyte character strings (according to the current 2004-05-02 11:25:37 +00:00
ls.c Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
ls.h Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
Makefile
print.c Treat filenames as multibyte character strings (according to the current 2004-05-02 11:25:37 +00:00
util.c Treat filenames as multibyte character strings (according to the current 2004-05-02 11:25:37 +00:00