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
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;
}
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.
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
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:
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:
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
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
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
9 matches
Mail list logo