From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105399 invoked by alias); 24 Jul 2017 22:51:52 -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 103571 invoked by uid 89); 24 Jul 2017 22:51:51 -0000 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 Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Jul 2017 22:51:49 +0000 Received: from [192.168.1.100] ([24.64.240.204]) by shaw.ca with SMTP id ZmCYdLOpOM9gtZmCZdSUrq; Mon, 24 Jul 2017 16:51:47 -0600 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.Inglis@Shaw.ca Subject: Re: Cygwin strptime() is missing "%s" which strftime() has To: cygwin@cygwin.com References: <2fb73f15-64b7-e10c-1e24-12ca9aa7c78b@t-online.de> From: Brian Inglis Message-ID: Date: Mon, 24 Jul 2017 23:18:00 -0000 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> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfFPZTvBbaeyRRTGgl0+WvQPzbbk/JX344ZPjeSppjx56/vSMmdkzicr7x/JRAQhjW1NKsycotvBoEElaWc5tsYzfbSEL5REtzIYC0uzBI5udctfFCeZi 2mBdaSB45TRr4W5ehgs9yXbJZQhAU+i30A6YWnzt+EOciJH63mWGcnVq X-SW-Source: 2017-07/txt/msg00335.txt.bz2 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