X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-6.9 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F1DC95A.6020409@redhat.com>
Date: Mon, 23 Jan 2012 13:55:54 -0700
From: Eric Blake <eblake@redhat.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: isprint core dump
References: <4F1DC14B.1090900@cs.utoronto.ca> <2BF01EB27B56CC478AD6E5A0A28931F203DD411E@A1DAL1SWPES19MB.ams.acs-inc.net>
In-Reply-To: <2BF01EB27B56CC478AD6E5A0A28931F203DD411E@A1DAL1SWPES19MB.ams.acs-inc.net>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig87E1257D4472BAAE2BB0F29C"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

--------------enig87E1257D4472BAAE2BB0F29C
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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*
>=20
> FWIW, that didn't come from the cygwin man page.

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.

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enig87E1257D4472BAAE2BB0F29C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPHclaAAoJEKeha0olJ0NqPDgIAIadRRBZODZe8mzPS/NBsC+3
+G0qbmrbMzlIFKX/iN3/8zWMJcQAcKpaUfod5ZV/qOYtJj00cEkd+sOxcQob1/K1
5PI0nyQ9n3i2EvLrXQzE4ago+s/QXxX3XeBh0ftDAnenCrKIRgOEqO83+TI+9Rt7
TuRVBp4esAnesSTde3k8Oui6Po+IMH6gy3lXO6QuvWg4rWDpFJnju6fLv514ilec
brGv0AM2HU7xfz3B5jPBDgifhF0ekLIrzHT4FYnvERIOcdEyAMjd1Bgevhe77lS1
8sX7dcjnm8DM4IPyn/5xnUrpaq35Yn/IHUZfHNpTP6opUw9+NDEQu3SOjOeucm8=
=dFyT
-----END PGP SIGNATURE-----

--------------enig87E1257D4472BAAE2BB0F29C--
