X-Recipient: archive-cygwin@delorie.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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type; q=dns; s=default; b=gXPa
	6wCu63rcBtHBevFensK2eEsjXp/wPmnk7VXMGww999SWf2MhKYOrILr2fi3QBe6Q
	NxU3DW9Fqj6d19LILI19AIvyFJ3Jvyn2W4g9GKzA+f3LqpsKZk+nFlHBWNT4rRKN
	i+9RbdC57D2isUZZHaOJeFG6IwzQS+nX1vUE9gY=
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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type; s=default; bh=QlxnrG8dQu
	dVwCCtQ/ch0hvxdlg=; b=dO/DMV6J3Ul6mIROJf/BQMDvd2jwxaCZ9uPS23Xwh1
	WUOg77PZ+CyfOJ8+W0aQGtv575NVKg7TDSfRnKOKnU0MUljbwdyYCS8+G/H71Lhn
	DUuqo0RDXg2iDfN6+6mZ26AtdO5/EjXSQflCdew1Xo54RtLTfXaP1PQh8gJ0PvPF
	w=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:fdf60e4, H*f:sk:fdf60e4, H*MI:sk:fdf60e4, dear
X-HELO: mx1.redhat.com
Subject: Re: scanf and m modifier
To: cygwin@cygwin.com
References: <768145014.4380137.1467998182030.JavaMail.yahoo.ref@mail.yahoo.com> <768145014.4380137.1467998182030.JavaMail.yahoo@mail.yahoo.com> <fdf60e4f-656c-01a9-91ef-35cc5e496a78@cs.umass.edu>
From: Eric Blake <eblake@redhat.com>
Openpgp: url=http://people.redhat.com/eblake/eblake.gpg
Message-ID: <577FE610.30204@redhat.com>
Date: Fri, 8 Jul 2016 11:42:40 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <fdf60e4f-656c-01a9-91ef-35cc5e496a78@cs.umass.edu>
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="AuaOOJ9tJugNpq4s8K5LuxElPnPPMHLST"
X-IsSubscribed: yes

--AuaOOJ9tJugNpq4s8K5LuxElPnPPMHLST
Content-Type: multipart/mixed; boundary="BLloc1hXVBwxtmuvLUCuhKbvnE2WuLNhq"
From: Eric Blake <eblake@redhat.com>
To: cygwin@cygwin.com
Message-ID: <577FE610.30204@redhat.com>
Subject: Re: scanf and m modifier
References: <768145014.4380137.1467998182030.JavaMail.yahoo.ref@mail.yahoo.com>
 <768145014.4380137.1467998182030.JavaMail.yahoo@mail.yahoo.com>
 <fdf60e4f-656c-01a9-91ef-35cc5e496a78@cs.umass.edu>
In-Reply-To: <fdf60e4f-656c-01a9-91ef-35cc5e496a78@cs.umass.edu>


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

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.

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.

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


--BLloc1hXVBwxtmuvLUCuhKbvnE2WuLNhq--

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJXf+YQAAoJEKeha0olJ0Nq3msH/3tqoD5il/8Z0yGG7jGfsPRh
p4yQuy33Jbp2rPfT1XuO3BKDRjAbPTJRq/7xUY3hqCinYvl4IZ5s8dwgX4VS7vps
igNRYZhQYuaB+2nJyN4LfuTUG1IGpQq2EN9lF5XzfNsdjLqiGQMrFesh2r7LxpUL
BAjwTdeJR4XtKA0e321dazI+fyx8Vi++QIDj6nyqB210BEBbpUNC6haWMFGFNf+6
QnU/JY91IjolKhGCBGFmNbWCkmnqAMC1z07PVjLCySXiwCPRe84Mtr+YafwAmsdi
rLP+97YUU530NjK/JAuDCDU8x/HeFFWp7n9/In+uADGKLzlCEm1aMizWKvaEFbo=
=sVS9
-----END PGP SIGNATURE-----

--AuaOOJ9tJugNpq4s8K5LuxElPnPPMHLST--
