[PATCH/RFA] Distinguish between EOF and character with value 0xff

Howland Craig D (Craig) howland@LGSInnovations.com
Wed Apr 22 00:39:00 GMT 2009


Eric Blake wrote Tuesday, April 21, 2009 5:32 PM:
...
>Not a library bug.  According to the standards, since a compliant
program is 
>already passing in [-1,255], this results in a value in the range
[0,256] in 
>compliant programs.  For buggy programs, which passed in a signed char
(and 
>thus a range of [-128,127], with -1 duplicated), all bets are already
off.
...
 
You're completely correct--it is not a library error.  I had that in my
email and accidently edited it out.  Thanks for catching the oversight.
 
Craig



More information about the Newlib mailing list