diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-11-29 20:06:53 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-11-29 20:06:53 +0000 |
commit | 3a229bf1d03d9b85e19a8c9b45f7c8d4283bea40 (patch) | |
tree | f911ada6d1446b269728b0a1f25ec53c568db05e /lib/libthr/thread/thr_fork.c | |
parent | c589fc6afa1036dc0e256cc45cecaa32bbc724bb (diff) | |
download | FreeBSD-src-3a229bf1d03d9b85e19a8c9b45f7c8d4283bea40.zip FreeBSD-src-3a229bf1d03d9b85e19a8c9b45f7c8d4283bea40.tar.gz |
When deciding which characters (of a filename, for instance)
are safe to print, try to take into account the current locale.
This iterates over output strings using mbtowc() to identify
multi-byte sequences. If iswprint() claims the corresponding
wide character is printable, the original bytes are passed
through. Otherwise, we expand characters into C-style
\-escape sequences.
Submitted by: Michihiro NAKAJIMA
MFC after: 30 days
Diffstat (limited to 'lib/libthr/thread/thr_fork.c')
0 files changed, 0 insertions, 0 deletions