delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/23/15:56:20

X-Recipient: archive-cygwin AT delorie DOT 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 AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: isprint core dump
References: <4F1DC14B DOT 1090900 AT cs DOT utoronto DOT ca> <2BF01EB27B56CC478AD6E5A0A28931F203DD411E AT A1DAL1SWPES19MB DOT ams DOT acs-inc DOT net>
In-Reply-To: <2BF01EB27B56CC478AD6E5A0A28931F203DD411E@A1DAL1SWPES19MB.ams.acs-inc.net>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT redhat DOT 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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019