summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_fork.c
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2008-11-29 20:06:53 +0000
committerkientzle <kientzle@FreeBSD.org>2008-11-29 20:06:53 +0000
commit3a229bf1d03d9b85e19a8c9b45f7c8d4283bea40 (patch)
treef911ada6d1446b269728b0a1f25ec53c568db05e /lib/libthr/thread/thr_fork.c
parentc589fc6afa1036dc0e256cc45cecaa32bbc724bb (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud