Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Dec 1997 16:13:20 -0800 (PST)
From:      Wolfgang Helbig <helbig@FreeBSD.ORG>
To:        jose@we.lc.ehu.es, helbig@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/5368
Message-ID:  <199712250013.QAA08409@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: the behavior of isprint(3) is not affected by ISO-8859-1 locale settings

State-Changed-From-To: open-closed
State-Changed-By: helbig
State-Changed-When: Wed Dec 24 16:03:30 PST 1997
State-Changed-Why: 
This is an error of the supplied program, not isprint(3).
The parameter passed to isprint(3) is declared as char, which
will be converted to int. Because of sign extension this results
in negative values for chars greater than 127.
So just declare "int c" instead of "char c" and everything will
work as expected.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712250013.QAA08409>