Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!ukc!sjl From: sjl@ukc.ac.uk (S.J.Leviseur) Newsgroups: comp.lang.c,comp.std.internat Subject: Re: draft ANSI standard: one change that would *really* help Europe Message-ID: <2221@eagle.ukc.ac.uk> Date: Thu, 4-Dec-86 07:04:29 EST Article-I.D.: eagle.2221 Posted: Thu Dec 4 07:04:29 1986 Date-Received: Fri, 5-Dec-86 05:42:49 EST References: <1382@hoptoad.uucp> <8322@lll-crg.ARpA> Reply-To: sjl@ukc.ac.uk (S.J.Leviseur) Organization: U of Kent at Canterbury, Canterbury, UK Lines: 31 Xref: mnetor comp.lang.c:245 comp.std.internat:18 In article <8322@lll-crg.ARpA> bandy@lll-crg.UUCP (Andrew Scott Beals) writes: >In article <1382@hoptoad.uucp> gnu@hoptoad.uucp (John Gilmore) writes: >>[This is posted to comp.lang.c because mod.std.c seems to be dead. Love >>those mod groups!] > >>[We really need an 8-bit character set and C needs to acknowledge this] > >>[John thinks that perhaps "char" should be unsigned - most programs > would be more correct since they assUme that chars are unsigned] > >Well, I heartily agree, but I think that there must be some programs >out there that assume that chars are useful as small signed numbers, >which I would also prefer not to break. Actually this breaks *LOTS* of programs. We have a compiler with unsigned chars on some of our machines. This causes endless problems with what is 'affectionately' known as the "EOF bug". The implementors of that compiler said it was the first thing they would alter if they reimplemented it because of the number of problems it caused. If you want to see for yourself have a look through your sources and find every occurence of a comparision between EOF or -1, and a char. Typically, where cp is a character pointer:- if (*cp == EOF) or while (*cp != EOF) Older code is littered with these constructs. sean