isprint(3)

Joerg Sonnenberger joerg at britannica.bec.de
Sun May 1 10:41:15 PDT 2005


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





More information about the Bugs mailing list