Why Berkeley changes in ctype?

rcd at opus.UUCP rcd at opus.UUCP
Tue Mar 6 13:07:38 AEST 1984


(Apologies if this has been answered before.)

Does anyone know why the 4.1a and later Berkeley versions of ctype_.c (in
libc/gen) were changed so that the characters HT, NL(LF), VT, NP(FF), and
CR (011-015) are no longer "control characters"?  For example, given
	#define	HT	'\011'
the test
	if (iscntrl(HT)) . . .
will fail in the Berkeley world.

This seems to have been changed at Berkeley; I believe it happened between
4.1 and 4.1a.  It puts the Berkeley "ctype" at odds with V7, System III
and V, the manual page ctype(3), and the ASCII standard (X3.4-1977) - in
other words, the rest of the world.  It can really bite you where you sit,
since it leaves some 7-bit codes not covered by either isprint or iscntrl.
-- 

{hao,ucbvax,allegra}!nbires!rcd



More information about the Comp.unix.wizards mailing list