some unusual errors

Michael Richardson
Tue Sep 22 23:12:00 GMT 1998

>>>>> "DJ" == DJ Delorie <> writes:
    DJ> 3. Remember that getchar() returns in int - for the very same reason,
    DJ> so that EOF is not in the range of valid characters.  getchar()
    DJ> returns EOF or 0..255, which is NOT the same range as the range for
    DJ> type `signed char'.

    DJ> Basically, if you're a programmer and you've stumbled onto this
    DJ> problem, you have a problem with your code.  60 - For help on using
    DJ> this list (especially unsubscribing), send a message to

  I think the problem is posix saying that is* needs to process EOF
without deciding if "char" is signed or not.
  isspace(foo[3]) has been around for a *LONG* time. It shouldn't break.
I will fix my code to use unsigned char's, fine, but I suggest that gnu-win32
make char unsigned by default then.

   :!mcr!:            |  Solidum Systems Corporation,
   Michael Richardson |For a better connected world,where data flows faster<tm>
 Personal: <A HREF=" "></A>. PGP key available.
 Corporate: <A HREF=" "></A>. 

For help on using this list (especially unsubscribing), send a message to
"" with one line of text: "help".

More information about the Cygwin mailing list