www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/10/27/04:47:03

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=vmxNs1ifScc4ICS0NlolWnZWbT4yruTBRzT3J/m/nd9ZjAU5A/AKA
C5ZPGJju/bUTDsIA+qWd7Btba54YgEYOwo5K6ZAujUd+ZddKaN15R2uFAh8i1ybz
kg3yPjt0oQXXFtCUEv/KuK39Dgl8g6cn871W5GM5TldieHaymFDDFg=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=s78FnZBfjurlxOirLYho0mTEhzw=; b=eGM/eFy08vxTgcCJJ3IuYMowlNN3
GWQ7/s0KQRydAi8hk8CnMenhpV8NWulUjP0GkekJpY4mOMOd/jjBUQcM4cDeaUYg
zHgy4+tVUJ/TkV5CBz+K4TgPW3ou4trVH7tdG+Cw4iIxjGsVgvFzmFd7r2MRcbPq
mZbQWubCm37N8/E=
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=-4.5 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2
X-Spam-User: qpsmtpd, 2 recipients
X-HELO: calimero.vinschen.de
Date: Tue, 27 Oct 2015 09:46:42 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com, cygwin-patches AT cygwin DOT com
Subject: Re: Bash unable to print epoch timestamp
Message-ID: <20151027084642.GM5319@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com, cygwin-patches AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com, cygwin-patches AT cygwin DOT com
References: <562A996C DOT 9070904 AT SystematicSw DOT ab DOT ca> <562E643C DOT 3090004 AT SystematicSw DOT ab DOT ca> <562ED064 DOT 6050100 AT SystematicSw DOT ab DOT ca>
MIME-Version: 1.0
In-Reply-To: <562ED064.6050100@SystematicSw.ab.ca>
User-Agent: Mutt/1.5.23 (2014-03-12)

--2zue9K3IhLF/3KAd
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Oct 26 19:16, Brian Inglis wrote:
> On 2015-10-26 11:34, Brian Inglis wrote:
> >Third time lucky - pasting inline into email and resending to all previo=
us lists.
> >
> >Please note that conversion into too-small buffer size in regression tes=
t may not have expected result!
> >
> >Tried to build with below and variants:
> >gcc -D_REGRESSION_TEST -D_COMPILING_NEWLIB -Dsniprintf=3Dsnprintf -I/usr=
/src/cygwin-2.2.1-1.src/newlib-cygwin/winsup/cygwin/include -o strftime-s-t=
est strftime.c
> >gives undef refs for __cygwin_gettzname, __cygwin_gettzoffset, __get_cur=
rent_time_locale, __tz_lock, __tz_unlock,
> >_tzset_unlocked
> >
> >Build stc with std cmdline and current strftime works and does demo issu=
e.
>=20
> Sorry - redo with the file existing!

No worries, I applied your other patch since it also cleaned up some
whitespaces and, for some reason, the below patch didn't apply cleanly.

There was just one problem:

> +	  {
> +	    long offset;	/* offset < 0 =3D> W of GMT, > 0 =3D> E of GMT:
> +	    offset =3D 0;	   subtract to get UTC */

This setting the offset to 0 is necessary, but commented out.  Typo?
I fixed this before committing the patch.


Thanks again,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--2zue9K3IhLF/3KAd
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWLznyAAoJEPU2Bp2uRE+gmrEP/0beAbJhK3yOPqeDsiQy9+7E
GAYWtrJ1n3iFjIwT+Pbw40z/9QetY7KcA9j4M5OiP0iKMmjY1yUlc8xnCgVB2HxL
l6fGeXvFvirfhe3rWYxZcrBC7C3c1ViRfWvMqeim1VxjBtYcI9fjBLXclh3dc43H
UHxXaC3JgKAmW6BW2ntXD8K+Lw/p81HftlOO5nvynm+3NMLhs+gxFjo1ChxF0aWG
ywZy8piFWks+81jaQ8HdOoCUaor4Xuw4Q4k5lIS5Tp+Mp9fg+dwKC5JjTtgbq8T+
Nj1Vt+85npdxUve+dQCINWMXXhOt7qtymjJDe1aUMSkr+6VJ4R8ccB+en26C/Js6
T4PRcYse3lmv5sUYdI3cp0zby47Q1Kb5l8oo69ZW9sP0n1DYze5yBnnCMUO5F0FR
smnm9Lv2Pur2GXft7tGntRUfcWJRQTGCk/PmDtml6/gAbDhsnmZsgJUTjVeY636q
DxPtZMO4wOigHoVqkjKmvNkU5JWiBvbAvYjBogloOpRGPIttJiW/APt05fpwsFMA
sLBQWEhJlyFvLKUZD4TEjTDWqCnMqLUrEBEkNKVRh6YaqWuUppjgQUXZKNHyP5xn
mH3GwAO/J9wjAH7KtZiWR7VYTln4UaMZetdlFD4EhsTgcK/5PL2pPwKmuDd9vm3g
vpKFK2KYfYeBQM9dBru3
=jVTk
-----END PGP SIGNATURE-----

--2zue9K3IhLF/3KAd--

- Raw text -


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