delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/24/17:49:22

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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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]" <lavr AT ncbi DOT nlm DOT nih DOT gov>
References: <BY1PR09MB0343072DC1C2667AAD1EEFF0A5BB0 AT BY1PR09MB0343 DOT namprd09 DOT prod DOT outlook DOT com>
From: Eric Blake <eblake AT redhat DOT com>
Openpgp: url=http://people.redhat.com/eblake/eblake.gpg
Message-ID: <f73a8d58-edc5-b9ee-86c8-e44dbd3d3944@redhat.com>
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: <BY1PR09MB0343072DC1C2667AAD1EEFF0A5BB0@BY1PR09MB0343.namprd09.prod.outlook.com>
X-IsSubscribed: yes

--bb53iGwIRkhJWx6lC5NgTlLJFPcVLaJLb
Content-Type: multipart/mixed; boundary="LOQnR6T9sn6OmcKAfuhTrVfTsSfUQ1s85";
 protected-headers="v1"
From: Eric Blake <eblake AT redhat DOT com>
To: cygwin AT cygwin DOT com,
 "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr AT ncbi DOT nlm DOT nih DOT gov>
Message-ID: <f73a8d58-edc5-b9ee-86c8-e44dbd3d3944 AT redhat DOT com>
Subject: Re: Cygwin strptime() is missing "%s" which strftime() has
References: <BY1PR09MB0343072DC1C2667AAD1EEFF0A5BB0 AT BY1PR09MB0343 DOT namprd09 DOT prod DOT outlook DOT com>
In-Reply-To: <BY1PR09MB0343072DC1C2667AAD1EEFF0A5BB0 AT BY1PR09MB0343 DOT namprd09 DOT prod DOT outlook DOT com>


--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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019