This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: some unusual errors



>   isspace(foo[3]) has been around for a *LONG* time. It shouldn't
>   break.

I agree it would be nice if the program didn't crash in those
conditions, and even better if it worked correctly, but relying on the
runtime to protect the computer from the programmer is a bad way to
start your morning.

> I will fix my code to use unsigned char's, fine, but I suggest that
> gnu-win32 make char unsigned by default then.

IRIX has unsigned chars by default.  You do NOT want that as a
default!  Many programs assume "char" can hold small negative numbers,
and fail in subtle ways on unsigned-char machines.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]