From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112492 invoked by alias); 18 Aug 2017 15:23:33 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 112469 invoked by uid 89); 18 Aug 2017 15:23:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=personal, H*c:application X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Aug 2017 15:23:31 +0000 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 01E44C0587E3; Fri, 18 Aug 2017 15:23:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 01E44C0587E3 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=vinschen@redhat.com Received: from calimero.vinschen.de (ovpn-117-112.ams2.redhat.com [10.36.117.112]) by smtp.corp.redhat.com (Postfix) with ESMTP id 28E8F6BC29; Fri, 18 Aug 2017 15:23:29 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id D8BD5A80990; Fri, 18 Aug 2017 17:23:27 +0200 (CEST) Date: Fri, 18 Aug 2017 18:53:00 -0000 From: Corinna Vinschen To: Brian Inglis Cc: newlib@sourceware.org Subject: Re: Cygwin strptime() is missing "%s" which strftime() has Message-ID: <20170818152327.GB6314@calimero.vinschen.de> Reply-To: newlib@sourceware.org Mail-Followup-To: Brian Inglis , newlib@sourceware.org References: <851e9a02-f7c2-25c4-f37d-64d17d5c6d54@SystematicSw.ab.ca> <20170725091613.GB14419@calimero.vinschen.de> <20170725185206.GE14419@calimero.vinschen.de> <9c38bcee-fbb0-9a30-0c28-58629f54aa0e@SystematicSw.ab.ca> <20170726104918.GF14419@calimero.vinschen.de> <6ae417fd-e109-4549-f005-5cfa7b6fdb62@SystematicSw.ab.ca> <20170726193443.GD30367@calimero.vinschen.de> <20170731095532.GK24013@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oC1+HKm2/end4ao3" Content-Disposition: inline In-Reply-To: <20170731095532.GK24013@calimero.vinschen.de> User-Agent: Mutt/1.8.3 (2017-05-23) X-SW-Source: 2017/txt/msg00839.txt.bz2 --oC1+HKm2/end4ao3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2349 Hi Brian, On Jul 31 11:55, Corinna Vinschen wrote: > On Jul 28 14:50, Brian Inglis wrote: > > On 2017-07-26 13:34, Corinna Vinschen wrote: > > > On Jul 26 11:27, Brian Inglis wrote: > > >> On 2017-07-26 04:49, Corinna Vinschen wrote: > > >>> On Jul 25 14:13, Brian Inglis wrote: > > >>>> On 2017-07-25 12:52, Corinna Vinschen wrote: > > >>>>> Well... on *third* thought, targets may redefine time_t via redef= ining > > >>>>> _TIME_T_. Targets not doing that will get long, so yeah, you're = right. > > >>>>> Maybe it is safer to use always strtoll_l and just break this dow= n to > > >>>>> time_t on the way. > > >>>> > > >>>> My concern has always been do all newlib RTEMS targets support long > > >>>> long, even if same as long, and stroll_l? > > >>> > > >>> Yes. The long long functions are not excluded like we do with long > > >>> double stuff. > > >>> > > >>>> Trying to build standalone or combined STC for this with changed s= trptime.c > > >>>> ld/collect2 fails to resolve ...global_locale. > > >>> > > >>> Yeah, it's an internal function to newlib. You need to include > > >>> libc/locale/setlocale.h somehow to accomplish that. STC from Cygwin > > >>> userspace will do. > > >> > > >> Not doing it for me: that's why I asked if there were undistributed = locale > > >> changes in the tree, and maybe in a dev snapshot? > > >=20 > > > No, it's an *internal* function, it doesn't get exported. There's no > > > (easy) way to build strptime.c outside the newlib tree as part of the > > > lib. That's why I said a userspace STC is enough. Don't try to build > > > strptime.c as standalone. Just build it as part of newlib/Cygwin and > > > test it from userspace by calling it. > >=20 > > Finally got all the prereqs installed and a clean build. > > My configure uses the default prefix /usr/local, which is at the head o= f my > > personal path. > > Is that enough for a test build, and how do I do that, or do I have to = replace > > the current release, with configure --prefix=3D/, make install into /bi= n/? >=20 > The configured paths don't matter for the Cygwin DLL itself, and your > patch doesn't change any headers or entry points of the lib. So just exit > from Cygwin, replace the DLL in Explorer, start a shell and go ahead. any news on the patch? Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer Red Hat --oC1+HKm2/end4ao3 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZlwZvAAoJEPU2Bp2uRE+gr7AP/16yRghkg8j4quqFHJZXBxRF MtLYyXzE5vcE+9DlB8OXV19D1zUPXbL7lrikzPFlsfuIZF5ld1VHMByb/vpNW+mn q5VmlGdgGC02J/QP6+Js0zB8a+iEF0g8Et4ohz/we8iA3Qgh7xbrYmxVXirC0+mt Ar0jhx7vBOVd3tdnR5Xbef/f2ms89jvWweWNi3ui365UszSCOwBgKTHA0D4AsSe1 NKLDMjPZdjW4wBiQLVbs5qFB0THCrYE/F7XCggMRD76XD0ItcOkdtaahOE5J0cRY YNsv5EWjFpVRwim7yVeKgWOCa+xdco5e9KdtaSMby+XhIO5LtxlUi+p74jaxeSOy BmBaqUi33hDVJpDzUx8jhcuJNQ20g0cqbxpnfvfp0iehDdywGgVsAdb+VcybfUbN e2RU1abz/aSJV+X0wtRj8M+1gskmsPFdSyXVSQFFzzW2z8QOM/9M5nShQvsV+eLS lWkoxo7TUi62xvkQeRcu5Hs4uceUmlNPGdcBeLNgzHvu4c9I+E131TKiLB9P/Ctb Ck37oUt3Um2qu1rCYGZV8GIdFQ48D+6wdHyBgtfuX5dDE0ViceTqFj4vTLlFg93k C1UhzalWZ25Ny1BIz3dnnK3lK0JjJIkinw5Xfa3VlI+8pJ9n8mFN65YzpY6dEDAm 3sbMsCsgmSYPYV4T36b8 =3I2+ -----END PGP SIGNATURE----- --oC1+HKm2/end4ao3--