Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ncar!ico!ism780c!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: _tolower and _toupper macros Message-ID: <17159@haddock.ima.isc.com> Date: 27 Jul 90 06:20:52 GMT References: <2891@dftsrv.gsfc.nasa.gov> <1990Jul26.100721.14628@warwick.ac.uk> Reply-To: karl@kelp.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 18 In article <1990Jul26.100721.14628@warwick.ac.uk> cuuee@warwick.ac.uk (Sean Legassick) writes: >I'm not sure what the ANSI position on these macros is (are they mentioned at >all?) No. Since the Standard allows for non-English alphabets, for which it's not necessarily true that toupper() does a conversion iff islower() is true%, the implementation has to do just as much work for _toupper() as for toupper(). POSIX doesn't have them either, but X/Open does. >[quote from man page] would seem to imply that in fact it is VAXC v3.0 which >has the mistake in ctype.h. Historically, implementations have disagreed on the definitions of toupper() and _toupper(). Unless a compiler claims ANSI conformance, it isn't a bug. Karl W. Z. Heuer (karl@kelp.ima.isc.com or ima!kelp!karl), The Walking Lint ________ % E.g. the German sharp s (0xdf in ISO Latin-1), which has no uppercase form.