PR libc/4755: Invalid code, not a bug

Petter Reinholdtsen pere@hungry.com
Wed Apr 16 18:58:00 GMT 2003


[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.



More information about the Libc-alpha mailing list