From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26593 invoked by alias); 24 Jul 2017 21:48:50 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 14563 invoked by uid 89); 24 Jul 2017 21:48:40 -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=demanding, our, 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; Mon, 24 Jul 2017 21:48:36 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8BDAF8046A; Mon, 24 Jul 2017 21:48:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 8BDAF8046A Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=eblake@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 8BDAF8046A Received: from [10.10.121.48] (ovpn-121-48.rdu2.redhat.com [10.10.121.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 12A486E738; Mon, 24 Jul 2017 21:48:32 +0000 (UTC) Subject: Re: Cygwin strptime() is missing "%s" which strftime() has To: cygwin@cygwin.com, "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" References: From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: Date: Mon, 24 Jul 2017 22:12:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bb53iGwIRkhJWx6lC5NgTlLJFPcVLaJLb" X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00332.txt.bz2 --bb53iGwIRkhJWx6lC5NgTlLJFPcVLaJLb Content-Type: multipart/mixed; boundary="LOQnR6T9sn6OmcKAfuhTrVfTsSfUQ1s85"; protected-headers="v1" From: Eric Blake To: cygwin@cygwin.com, "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" Message-ID: Subject: Re: Cygwin strptime() is missing "%s" which strftime() has References: In-Reply-To: --LOQnR6T9sn6OmcKAfuhTrVfTsSfUQ1s85 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Content-length: 1439 On 07/24/2017 04:28 PM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: >> then its use of %s in either of those functions constitutes a _bug_ >=20 > Oh really? Is that why "%s" was added to Cygwin's strftime() lately? Your mailer is breaking up threads, which is making it very annoying to follow where your replies are landing. strftime() has been formatting %s since Oct 2015 (if you can call that "lately"). In fact, you made me check git history: it was not me that added it (like I thought, so I must have added it in gnulib instead); but Brian - in fact, the same Brian who is now working on adding %s to strptime(). The point remains: if you want your program to be portable, you should not use %s. But if your program is okay with demanding a GNU/Linux environment rather than sticking to portable code, then Cygwin still tries to cater to that by providing as many GNU/Linux extensions as possible, and pointing out where we fall short is appreciated. But still, someone has to code it, this is a volunteer effort, and we tend to scratch our own itches. The fact that strptime() lagged strftime() by nearly 2 years in adding %s support is par for the course. It's not worth complaining about, and if you want faster action, then submit patches yourself instead of asking others to do it for you. --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org --LOQnR6T9sn6OmcKAfuhTrVfTsSfUQ1s85-- --bb53iGwIRkhJWx6lC5NgTlLJFPcVLaJLb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 619 -----BEGIN PGP SIGNATURE----- Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAll2azAACgkQp6FrSiUn Q2rosggAmvJoPbWtNrlMpZpduM/7JnNr9WoYTW8y/uJeMYYMwqn09GUGMCLQnFGi SYPILIbfulN1OmUlCMMIgwBhwct6NVKAWoWcwSYpvVfHZiBaXwjHdQQUho35F6rb LGzpuJsij3wWnHAthMtspdzohuarXqir4Bg/NgPUhiYQkdcIWIezrE39kusg2pV7 nd7/5I8P0Mbyr2DhGQyarD1eAuVa6YDZ7c/1W7wsalYuplU5qpdLnIofNsYcfkeV xMnaAUNpJZRn1kBQrsjeifpUjpMSYg5gAM2Gk1qtcuHrgrszQyCl4+el9tmqj9Cg CP2QeERzygX8MGEWUI+qJLBDfNH83w== =92c3 -----END PGP SIGNATURE----- --bb53iGwIRkhJWx6lC5NgTlLJFPcVLaJLb--