From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9024 invoked by alias); 31 Jul 2017 09:55:37 -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 9008 invoked by uid 89); 31 Jul 2017 09:55:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=accomplish, STC, Hx-languages-length:2210, stc 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; Mon, 31 Jul 2017 09:55:35 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 54EFCC233565 for ; Mon, 31 Jul 2017 09:55:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 54EFCC233565 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=vinschen@redhat.com Received: from calimero.vinschen.de (ovpn-117-128.ams2.redhat.com [10.36.117.128]) by smtp.corp.redhat.com (Postfix) with ESMTP id EF31D17CCB for ; Mon, 31 Jul 2017 09:55:33 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id B6B7CA805CF; Mon, 31 Jul 2017 11:55:32 +0200 (CEST) Date: Mon, 31 Jul 2017 09:55:00 -0000 From: Corinna Vinschen To: newlib@sourceware.org Subject: Re: Cygwin strptime() is missing "%s" which strftime() has Message-ID: <20170731095532.GK24013@calimero.vinschen.de> Reply-To: newlib@sourceware.org Mail-Followup-To: 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zOcTNEe3AzgCmdo9" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-SW-Source: 2017/txt/msg00701.txt.bz2 --zOcTNEe3AzgCmdo9 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2185 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 redefin= ing > >>>>> _TIME_T_. Targets not doing that will get long, so yeah, you're ri= ght. > >>>>> Maybe it is safer to use always strtoll_l and just break this down = 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 str= ptime.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 lo= cale > >> 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 of = my > personal path. > Is that enough for a test build, and how do I do that, or do I have to re= place > the current release, with configure --prefix=3D/, make install into /bin/? 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. Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer Red Hat --zOcTNEe3AzgCmdo9 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZfv6UAAoJEPU2Bp2uRE+g/gAP/0QECV6hIqTyW32Y7YW62jKP wKOysHlTK8iIbFy3vydRCFO4Kx2/FZtHtGP+gi6voK9pc4VaxRRFPEohnxMlSYOL oRuBN1z3pvBskg6lbUnUzI7/OyYZVV3BzM5vZAUG3a0BPjdSOU6nv6FxqLYjpEk+ 9PLsmsISvxx/Q2vGv/j8iilMs81XVu2KHjKqy63f8Vnc+UDJLarpOWtM0CjYNzjB iuvW7ci+upzw9at6sSu/I0MHhAuahbPogyMrZQA8kEh0NpXGZ3Utgu6HdqxdFYoN etPqAd2ZwFffdL9OcrKufegtjMvb8Cy6z2baz2x+QKJhdUwoyg4Glm6Z535u7qHy rUCMg12p0dAeJ3rKu0t2VSfILJWT02p0tWw5kf+CH+LVadxsUHqxCYcsp52/KfpQ Q7dvg415XMC456OQrBEzyfm+s3y/PB+V8Pk3T35aggo/b0ycZxwq+ZFYoSQLAF9O kIncORGK00gevClRkWxD+m/ond6tn3e2YVPLsch4IBGYngOvswCLnldBhCr1LwdS jDy302QL+kK4zCcnxdhZd2LkO3Wzfnxb/vAJpQg2XGzLCCQyptbEBW2OQzDwzVa6 4qUun9tQvqjfA1vjapOoy7nXhOp/3nRizasOChvYT2Qu1H1MocuzyFK7TRXrZqdA 97/RtlkmMZftBvHkIjUn =PMVg -----END PGP SIGNATURE----- --zOcTNEe3AzgCmdo9--