delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/24/18:52:07

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:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=pTQYDreq+cr8I2d7
UNK6ptLpkiUXDAiSmIPDQFd7bfHqBQW58UvYWIhE5mJKaRgu+aFqSca79TvChfv4
2Gh1ShQGT+4Nr8ApaEcG1fXdPZNgUuNcf3WGJp7nzSrJovzocHH+x97FIRJM5oTC
6eG/sMRXKpLmqforZ0pdOvcTfHE=
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:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=xiTWvoBTPt8uAJjgiT8+CQ
bEfOk=; b=MZOs6f8ATjBce7bsGD+JqdH6xi3n3Sqz1ElOEh7nPRuSNAyiQeVBkS
0MZpxlC45HoUoMAPGPTpEQiLTn/24c0vHtuj6CV/W6w1gA/8W0RfE4C6RaqfCHqu
v46MgSLrD1vjEAJs9DX03gOiEf+0P9vYNllEuY8bbcCfTkiUUTT5U=
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=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=shaw.ca, UD:shaw.ca, shawca, claims
X-HELO: smtp-out-no.shaw.ca
X-Authority-Analysis: v=2.2 cv=a+JAzQaF c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=w5aJ8kaLLAry8Qfnm_kA:9 a=QEXdDO2ut3YA:10
Reply-To: Brian DOT Inglis AT Shaw DOT ca
Subject: Re: Cygwin strptime() is missing "%s" which strftime() has
To: cygwin AT cygwin DOT com
References: <BY1PR09MB0343663DE41D927E67CF0CCEA5BB0 AT BY1PR09MB0343 DOT namprd09 DOT prod DOT outlook DOT com> <2fb73f15-64b7-e10c-1e24-12ca9aa7c78b AT t-online DOT de>
From: Brian Inglis <Brian DOT Inglis AT Shaw DOT ca>
Message-ID: <a7b1040f-baf7-cf7f-80c0-90349583ad14@Shaw.ca>
Date: Mon, 24 Jul 2017 16:51:46 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <2fb73f15-64b7-e10c-1e24-12ca9aa7c78b@t-online.de>
X-CMAE-Envelope: MS4wfFPZTvBbaeyRRTGgl0+WvQPzbbk/JX344ZPjeSppjx56/vSMmdkzicr7x/JRAQhjW1NKsycotvBoEElaWc5tsYzfbSEL5REtzIYC0uzBI5udctfFCeZi 2mBdaSB45TRr4W5ehgs9yXbJZQhAU+i30A6YWnzt+EOciJH63mWGcnVq

On 2017-07-24 15:02, Hans-Bernhard Bröker wrote:
> Am 24.07.2017 um 04:09 schrieb Lavrentiev, Anton (NIH/NLM/NCBI) [C]:
> 
>> rather it's a question about portability of code that
>> uses %s for both functions and expects it to work unchanged in the
>> Cygwin environment.  
> 
> And the answer to that question is: such code _is_not_portable_, and therefore
> that expectation is wrong.
> 
> If that code claims to be portable, then its use of %s in either of those
> functions constitutes a _bug_.
> 
> In the old days there was a well-known fallacy known by the slogan "all the
> world's a VAX."  Nowadays it appears to have been replaced by an equally
> wide-spread, and equally incorrect belief that all the world is Linux.  Well,
> it's not.  Not even the whole Un*x world is Linux.

Rather "all the world's a GNU" i.e. glibc, but there's also BSD libc, RTEMS and
Cygwin newlib, and others.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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