This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: PR libc/4755: Invalid code, not a bug
- From: Petter Reinholdtsen <pere at hungry dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: Petter Reinholdtsen <pere at hungry dot com>, libc-alpha at sources dot redhat dot com
- Date: 16 Apr 2003 20:58:01 +0200
- Subject: Re: PR libc/4755: Invalid code, not a bug
- References: <200304152103.h3FL3dt24717@magilla.sf.frob.com>
- Reply-by: Tue, 1 Jan 1801 04:37:40 +1000
[Roland McGrath]
> You are correct. That code is invalid (using unspecified or
> undefined behavior). The spec is clear. It so happens that EOF is
> -1, so if toupper behaved any differently than it does now for -1,
> it would be in error.
Exactly. Someone should close the problem report.