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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; q=dns; s=default; b=vxoO yPPLJORKhA7Xu2aHVZLPRQgdvjmZkLGrSY1iX5hjCUrTQm6m7R58EAncrbug5ZwB sZyQRBXyWy+O7id2xszHyN2OkC4FTwCBSpqUmKYmgfJSeVhK3mljsTRc53Chyu/0 Lsz0fRarpZKi/oXg/9ceAfC3diP31CQlM61SglU= 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=xEhaEPM7PQ YO7kHrsJyHl+/WfQI=; b=oywd1S5xbPr/BrYOdFILaZk+qUgPrBAD3SPzNTFZRf u/L/vmup3KgD89HxbKshuYpyHLbPHWYjUmIsvGagPQ0rqR2SDiBJVn3LT3kbY2Oq nKLBlzTNO9rxR+GzMbk4ucwe36Lt7SbrjUx9mOKetNXL2SPUB2BUNjGco97McCR/ I= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-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 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 AT redhat DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 8BDAF8046A Subject: Re: Cygwin strptime() is missing "%s" which strftime() has To: cygwin AT cygwin DOT 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 16:48:32 -0500 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 --bb53iGwIRkhJWx6lC5NgTlLJFPcVLaJLb Content-Type: multipart/mixed; boundary="LOQnR6T9sn6OmcKAfuhTrVfTsSfUQ1s85"; protected-headers="v1" From: Eric Blake To: cygwin AT cygwin DOT 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 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" -----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--