bug-cssc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-cssc] Fwd: GNU CSSC 1.3.1 is released


From: Joerg Schilling
Subject: Re: [Bug-cssc] Fwd: GNU CSSC 1.3.1 is released
Date: Thu, 19 May 2011 19:25:06 +0200
User-agent: nail 11.22 3/20/05

James Youngman <address@hidden> wrote:

> FYI; looks like you didn't already join the mailing list.

Hi,

I fetched the code and found two problems:

1) common/command-names has an superfluous space in an "admin" line causing the
        shell to complain.

2) 1.5 69/12/31 23:59:59 this is not a legal date for me as I am east to GMT.
        This is of course only happens when you use 32 bit binaries and 
        thus enforce 32 bit int overflows. 

It is however nice to see that:

        TZ=GMT /opt/schily/ccs/bin/prs "-d:I: :D: :T:" -e year-2000/s.y2k.txt

will create "correct" output as the integer overflow then is halfway 
symmetrical, while the official prs from SCCS did still ouputs:

1.5 32/11/25 17:31:43
1.4 00/02/29 00:00:00
1.3 00/01/01 00:00:00
1.2 99/12/31 23:59:59
1.1 70/01/01 00:00:00

So my recent work on date_ab.c was successful.

Note that Sun's prs did make 1968 an illegal year......


To make things clearer, let me show what really happens in Europe:

prs-64 "-d:I: :d: :T:" -e year-2000/s.y2k.txt 
1.5 2068/12/31 23:59:59
1.4 2000/02/29 00:00:00
1.3 2000/01/01 00:00:00
1.2 1999/12/31 23:59:59
1.1 1969/01/01 00:00:00

prs-32 "-d:I: :d: :T:" -e year-2000/s.y2k.txt 
1.5 1970/01/01 00:59:59
1.4 2000/02/29 00:00:00
1.3 2000/01/01 00:00:00
1.2 1999/12/31 23:59:59
1.1 1969/01/01 00:00:00

The original Sun derived time conversion code results in:

/tmp/prs "-d:I: :d: :T:" -e year-2000/s.y2k.txt 
1.5 1932/11/25 17:31:43
1.4 2000/02/29 00:00:00
1.3 2000/01/01 00:00:00
1.2 1999/12/31 23:59:59
1.1 1970/01/01 00:00:00

Jörg

-- 
 EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
       address@hidden                (uni)  
       address@hidden (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



reply via email to

[Prev in Thread] Current Thread [Next in Thread]