Re: isprint core dump

2012-01-24 Thread Csaba Raduly
On Mon, Jan 23, 2012 at 10:34 PM, Nellis, Kenneth wrote: From: Eric Blake No, but it DOES come from POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/functions/isprint.html And cygwin's behavior matches POSIX on this point; the bug is in your program, not cygwin. Call me blown away

isprint core dump

2012-01-23 Thread Nellis, Kenneth
I haven't had the chance to try under Linux, but isprint(3055872) is core-dumping on me. Here's a STC: == #include stdio.h #include ctype.h int main (void) { int a = 3055872; int b = isprint(a); printf (%d %d\n, a, b); return 0; }

Re: isprint core dump

2012-01-23 Thread Ryan Johnson
On 23/01/2012 3:16 PM, Nellis, Kenneth wrote: I haven't had the chance to try under Linux, but isprint(3055872) is core-dumping on me. From the isprint() man page: /c/ ... must have the value of an /unsigned char/ or *EOF* The test case probably overruns some internal table by 3MB or so.

Re: isprint core dump

2012-01-23 Thread Jon Clugston
On Mon, Jan 23, 2012 at 3:16 PM, Nellis, Kenneth kenneth.nel...@acs-inc.com wrote: I haven't had the chance to try under Linux, but  isprint(3055872) is core-dumping on me. Here's a STC: == #include stdio.h #include ctype.h int main (void) {    int a

RE: isprint core dump

2012-01-23 Thread Nellis, Kenneth
From: Ryan Johnson From the isprint() man page: /c/ ... must have the value of an /unsigned char/ or *EOF* FWIW, that didn't come from the cygwin man page. --Ken Nellis -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation:

Re: isprint core dump

2012-01-23 Thread Eric Blake
On 01/23/2012 01:44 PM, Nellis, Kenneth wrote: From: Ryan Johnson From the isprint() man page: /c/ ... must have the value of an /unsigned char/ or *EOF* FWIW, that didn't come from the cygwin man page. No, but it DOES come from POSIX:

RE: isprint core dump

2012-01-23 Thread Nellis, Kenneth
From: Eric Blake No, but it DOES come from POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/functions/isprint.html And cygwin's behavior matches POSIX on this point; the bug is in your program, not cygwin. Call me blown away by the level of support this function that dumps core is

Re: isprint core dump

2012-01-23 Thread Eric Blake
On 01/23/2012 02:34 PM, Nellis, Kenneth wrote: From: Eric Blake No, but it DOES come from POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/functions/isprint.html And cygwin's behavior matches POSIX on this point; the bug is in your program, not cygwin. Call me blown away by the

Re: isprint core dump

2012-01-23 Thread Ryan Johnson
On 23/01/2012 4:39 PM, Eric Blake wrote: On 01/23/2012 02:34 PM, Nellis, Kenneth wrote: From: Eric Blake No, but it DOES come from POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/functions/isprint.html And cygwin's behavior matches POSIX on this point; the bug is in your program, not