Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 1997 20:05:51 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        "Jonathan M. Bresler" <jmb@FreeBSD.ORG>
Cc:        wollman@khavrinen.lcs.mit.edu (Garrett Wollman), freebsd-bugs@FreeBSD.ORG
Subject:   Re: ispunct(3) [was: FreeBSD-2.1.1]
Message-ID:  <199707150005.UAA08383@khavrinen.lcs.mit.edu>
In-Reply-To: <199707142331.QAA21580@hub.freebsd.org>
References:  <199707141916.PAA07598@khavrinen.lcs.mit.edu> <199707142331.QAA21580@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Mon, 14 Jul 1997 16:31:58 -0700 (PDT), "Jonathan M. Bresler" <jmb@FreeBSD.ORG> said:

> Garrett,
> 	even FreeBSD current does not seem to have UCHAR_MIN.
> 	what system is your test program supposed to be for?

Sorry... serves me right for modifying my example after having
compiled it.  UCHAR_MIN doesn't exist because the only permissible
minimum value for any unsigned type is zero.  My original program
iterated over [CHAR_MIN,UCHAR_MAX], but I realized that that was
incorrect and changed it in my message without re-testing.

In any event, that particular error does not change the fact that
Standard C requires the ctype(3) routines work for all possible values
of an unsigned char, and EOF, and the old isascii() kluge should not
be carried over into new code.  (If you are concerned about
portability to old, broken systems, include a working ctype(3)...)

-GAWollman

--
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick



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