summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/cname.h
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-05-02 11:25:37 +0000
committertjr <tjr@FreeBSD.org>2004-05-02 11:25:37 +0000
commitde72f8ed4193914556f8e7266dc1f52706213d5b (patch)
tree33ababbec3452462cff8a64581a3fc9f628a2913 /lib/libc/regex/cname.h
parent0342c52a187a490376a081f56bf3b22a229b7cd1 (diff)
downloadFreeBSD-src-de72f8ed4193914556f8e7266dc1f52706213d5b.zip
FreeBSD-src-de72f8ed4193914556f8e7266dc1f52706213d5b.tar.gz
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.
Diffstat (limited to 'lib/libc/regex/cname.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud