tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: tolower()/islower() and char
On Thu, Jan 14, 2021 at 07:46:01AM -0500, Mouse wrote:
> > The standard is explicit that the argument must be EOF or an unsigned
> > char. There is no way to support both true 8bit locales and
> > magically fix this.
>
> No way for ctype.h to do so independent of the rest of the system. But
> it's not at all hard to fix it from a libc design perspective; you just
> need to choose a value for EOF that is out of range for signed char.
I recall there being some debate about whether it's actually legal for
EOF to have any value other than -1.
FWIW.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index