DragonFly BSD
DragonFly bugs List (threaded) for 2005-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: isprint(3)


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Sun, 1 May 2005 19:38:12 +0200
Mail-followup-to: bugs@crater.dragonflybsd.org

On Sun, May 01, 2005 at 03:27:19PM +0900, YONETANI Tomokazu wrote:
> Hello.
> On post-Citrus-import system, isprint('\t') returns true even for
> C locale. This contradicts with what's explained in isprint(3) man page.
> This also slightly affects tools like hd(1):

I see the problem. isprint is currently true for:
isalnum() || ispunc() || isblank()

\t is in isblank(), but it is also a control char. I have to investigate
whether it is better to not include blank (only space), split the define
into two parts are explicitly mask off cntrl. The first should be allowed
by SUS for the POSIX locale, but I have to check it carefully.

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]