delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
X-Received: | by 10.13.254.67 with SMTP id o64mr26905815ywf.164.1494140961566; |
Sun, 07 May 2017 00:09:21 -0700 (PDT) | |
X-Received: | by 10.157.37.213 with SMTP id q79mr1136503ota.11.1494140961512; |
Sun, 07 May 2017 00:09:21 -0700 (PDT) | |
Newsgroups: | comp.os.msdos.djgpp |
Date: | Sun, 7 May 2017 00:09:20 -0700 (PDT) |
In-Reply-To: | <590CCAE9.3090904@gmx.de> |
Complaints-To: | groups-abuse AT google DOT com |
Injection-Info: | glegroupsg2000goo.googlegroups.com; posting-host=151.15.178.213; |
posting-account=HmlS2woAAAB1NabPfVdCpfr99n8R6B7m | |
NNTP-Posting-Host: | 151.15.178.213 |
References: | <6c031262-a53d-4ede-925d-ef279a2e1286 AT googlegroups DOT com> <590CCAE9 DOT 3090904 AT gmx DOT de> |
User-Agent: | G2/1.0 |
MIME-Version: | 1.0 |
Message-ID: | <c896b052-d55e-454d-9cb5-89d2b446b247@googlegroups.com> |
Subject: | Re: Bug in timestamp arithmetic |
From: | "Arrigo Marchiori (ardovm AT yahoo DOT it) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com> |
Injection-Date: | Sun, 07 May 2017 07:09:21 +0000 |
Bytes: | 2490 |
Lines: | 35 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id v477F2F3025986 |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
Hello Juan Manue, and thank your for your quick reply. I would like to add a note: Il giorno venerdì 5 maggio 2017 20:54:20 UTC+2, Juan Manuel Guerrero ha scritto: > Am 05.05.2017 15:27, schrieb Arrigo Marchiori: > > Dear All, > > > > I am writing here to report a bug, as I could not do it through the delorie.com web site. [...] > I also have usually neither TZ set nor djtzn205 installed and can verify the > bug described by the poster. An inspection of ctime.c from the repository > shows that the implementation has the different bugs described in the post > leading to random timestamp around 1969-12-24 for my installation. > IMO, the fix proposed is correct and it solves the problems as explained. I understood from the comments in DJGPP's ctime.c that the source is from BSD. Therefore, I consulted the correspondant file from the FreeBSD source code, that is contrib/tzcode/localtime.c : https://svnweb.freebsd.org/base/stable/9/contrib/tzcode/stdtime/localtime.c?view=markup In that file: - the stdoffset variable is set explicitly to zero (second modification in the patch) and - the defaulttype attribute is not defined, but its value is calculated every time. Thank you and best regards, -- Arrigo
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |