*BSD News Article 5627


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel!munnari.oz.au!spool.mu.edu!umn.edu!math.fu-berlin.de!hrz.tu-chemnitz.de!wutcd
From: wutcd@chemnitz.guug.de (Joerg Wunsch)
Subject: Re: 386BSD's non-standard C library
Message-ID: <wutcd.717452137@hadrian>
Sender: bin@hrz.tu-chemnitz.de (Owner of all binaries)
Organization: tu-chemnitz
References: <1992Sep24.031603.21009@minyos.xx.rmit.oz.au>
Date: Fri, 25 Sep 1992 20:15:37 GMT
Lines: 18

Oops, Kendall is quiet right with his remarks. Of course, the existing
versions of tolower()/toupper() aren't right. The macros may be omitted,
(does ANSI really state there must be _macros_ for this???), but the
functions in /usr/src/lib/libc/gen/isctype.c do the same dirty job.
They should be patched to test for isupper()/islower() before applying
the diff value - but this value must be taken from the character class
definition (as the is*() functions already do).

If i have half an hour left, i'll post the diff's - all the other people
surely will make this themself.

	Enjoy,
	J"org
--
J"org Wunsch, TCD GmbH Dresden, R"ahnitzgasse 18, D-O-8060 Dresden
                                                              \     ~.~. 
	joerg_wunsch%bonnie@hadrian.hrz.tu-chemnitz.de         \   ~  | ~ 
	voice: +49-351-5965 137                                 \    ===