delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/07/11/05:57:00

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=o3be6Qe1aBIIVBcJ1fz1Q8e5tQx/jp8zNIa0u/rhsyMGbv+TeJK7G
Wt6jkfGkVbCedPxbEJWlcKAZkatZl/Vzue2VGlwSbnwPEgl2AJP2HWj7H2GADVYT
RQvYfpylbnOtZqi1aFkzpRRNFDPzSW3j8yn49eXpMVtM+5g59Wa/2Q=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=qbq6z+wKozPNZczXW0VMl+X0uBo=; b=cVz0HeY5sCCBWDs/GVkz74rNqkDW
TZw5s4ckHE5cqoZvggoJ5uoXMIMuSqT8Nrw6yrU1kYaMFnfOCaGKUCJE+POa67Rm
UMt5LczXHmDzrJVBOiFvDljs7B70IIVwlbuSEgjs5X6EQfe5TgfrtY/nvhP4amfn
sJCbWtd0HE9s2Mg=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-94.7 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_BRBL_LASTEXT,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=moderate, dear, Dear
X-HELO: calimero.vinschen.de
Date: Mon, 11 Jul 2016 11:56:39 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: scanf and m modifier
Message-ID: <20160711095639.GO13445@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <768145014 DOT 4380137 DOT 1467998182030 DOT JavaMail DOT yahoo DOT ref AT mail DOT yahoo DOT com> <768145014 DOT 4380137 DOT 1467998182030 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT com> <fdf60e4f-656c-01a9-91ef-35cc5e496a78 AT cs DOT umass DOT edu> <577FE610 DOT 30204 AT redhat DOT com>
MIME-Version: 1.0
In-Reply-To: <577FE610.30204@redhat.com>
User-Agent: Mutt/1.6.1 (2016-04-27)

--wj9ZLJVQDRFjGSdK
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Jul  8 11:42, Eric Blake wrote:
> On 07/08/2016 11:22 AM, Eliot Moss wrote:
> > On 7/8/2016 1:16 PM, Owen Leibman wrote:
> >> The m modifier is handled just fine by the compiler, but
> >> the results of using it are different on Cygwin than on several other
> >> systems
> >> I've tried. Here is a sample program:
> >=20
> > Dear Owen -- The first question I'd ask is: What versions of gcc
> > and C libraries are we talking about?  IIRC, the m feature is
> > relatively new (relative being, umm, relative), so which gcc you're
> > using, and the libraries, too, may matter.
>=20
> scanf("%ms") is a POSIX extension, not required by C99.  I suspect the
> answer is that no one has implemented it in newlib yet; patches welcome.

Indeed, the 'm' modifier isn't implemented in newlib yet.  However, the
vfscanf code, while being a bot more convoluted than FreeBSD/NetBSD to
support small targets, is still based on FreeBSD and NetBSD.  It might
be possible to port the 'm' handling from one of them with moderate
effort.

Anybody here who'd like to do that?

Just send your patch to the newlib AT sourceware DOT org mailing list=20
and we're looking it over for inclusion.


Thanks,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--wj9ZLJVQDRFjGSdK
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXg21XAAoJEPU2Bp2uRE+gXjYP/2r+vBzgHnTZrgMP0BvdF3ny
8AuWZ+ZgVEF8nHhfTWHu9oCWJWFV7iI3EmSGkPaIYTKhBkGkU9iItASVKTh8Tr+n
PWhlli0gllIZjL0EbjsW0G/3IRmUi/VAuaudWTe2cak5iUThoZCDdWFvzLHZwBI/
EG5ALpA+VNCRhBizv0MmTUhxZWlCTKdbjRp762JZtffoIlZueMC+nLP4+N+NwCfJ
Qvd44uRdW7KN39SjmZRWOiOrlbQpMSih70VbX6fG577b8FIO5ClU+gMPjHRnaTlJ
6uLBrbhAB1ehoWPteFfahHlPcmWIhY2oarxEYBP34xq00P8BqEj2/82hTLpZLg7V
cce57qocK7EJC7etAaOpnuayuFiNFvgeF0ecipPI22ADVgT8lQNmmrFv58KZGhNq
u5fe1cxJn40OhCkgLntS+gWFVnDqJC1ZlHcZrKbKmcFee/jrAOjoDXbpKD8splRZ
AffJedmk3BQeqXC14Ytq/Z8588pDP5t7pZF/pQnDiDDEslE456G8ecpSIASZFkdL
6KpxOJqWZh8zJpZxregN1IHKfFm4GA2VgAO610bAZU3l9cDWQPmWWNGcOMv59uKE
Z0d9dQBvtclMjqLL4UAWCBANVeo9njuNNV3h9gOdeuqfpH4mlxTDKMPq2/pU0NB2
a1NKnaQNSiEDCRLuOylV
=aNW8
-----END PGP SIGNATURE-----

--wj9ZLJVQDRFjGSdK--

- Raw text -


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