This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: some unusual errors
- To: mcr at solidum dot com
- Subject: Re: some unusual errors
- From: DJ Delorie <dj at delorie dot com>
- Date: Tue, 22 Sep 1998 16:56:34 -0400 (EDT)
- CC: gnu-win32 at cygnus dot com
> 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".