From owner-freebsd-bugs Mon Jul 14 16:32:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA21627 for bugs-outgoing; Mon, 14 Jul 1997 16:32:10 -0700 (PDT) Received: (from jmb@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA21580; Mon, 14 Jul 1997 16:31:59 -0700 (PDT) From: "Jonathan M. Bresler" Message-Id: <199707142331.QAA21580@hub.freebsd.org> Subject: Re: ispunct(3) [was: FreeBSD-2.1.1] To: wollman@khavrinen.lcs.mit.edu (Garrett Wollman) Date: Mon, 14 Jul 1997 16:31:58 -0700 (PDT) Cc: jmb@freebsd.org, freebsd-bugs@freebsd.org In-Reply-To: <199707141916.PAA07598@khavrinen.lcs.mit.edu> from "Garrett Wollman" at Jul 14, 97 03:16:09 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Garrett Wollman wrote: > > < said: > > > Garrett, > > i am sure that you are correct, but i would prefer more portable code. > > UCHAR_MIN seems to be in short supply. (UCHAR_MAX might be too). > > isascii() is everywhere. > > No it's not. That's the whole point. Yes, there are substandard > implementations which need such hackery. The appropriate method is to > write to the Standard and provide alternatives for substandard > systems. Garrett, even FreeBSD current does not seem to have UCHAR_MIN. what system is your test program supposed to be for? Aspen:[209] uname -a FreeBSD Aspen.Woc.Atinc.COM 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Mon Jul 14 18:04:43 EDT 1997 jmb@Aspen.Woc.Atinc.COM:/other/src/sys/compile/ASPEN i386 Aspen:[210] grep UCHAR /usr/include/* /usr/include/machine/* /usr/include/machine/limits.h:#define UCHAR_MAX 255 /* max value for an unsigned char */ Aspen:[211] gcc /tmp/a.c /tmp/a.c: In function `main': /tmp/a.c:10: `UCHAR_MIN' undeclared (first use this function) /tmp/a.c:10: (Each undeclared identifier is reported only once /tmp/a.c:10: for each function it appears in.) jmb