NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/41945: calendar(1) doesn't recognize days of the week correctly sometimes
The following reply was made to PR bin/41945; it has been noted by GNATS.
From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: Robert Elz <kre%munnari.OZ.AU@localhost>
Cc: "Jeremy C. Reed" <reed%reedmedia.net@localhost>,
NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
Subject: Re: bin/41945: calendar(1) doesn't recognize days of the week
correctly sometimes
Date: Tue, 20 Oct 2009 21:54:58 +0200
On Wed, Oct 21, 2009 at 12:10:07AM +0700, Robert Elz wrote:
> Date: Tue, 20 Oct 2009 15:20:44 +0200
> From: Thomas Klausner <wiz%NetBSD.org@localhost>
> Message-ID: <20091020132044.GY13087%danbala.tuwien.ac.at@localhost>
>
> | However, there's one bug left, I think:
> | # ./calendar -d 1005
> | Sunday 1800 something
> |
> | The 5th was a Monday. Perhaps the Sunday is caught by the lookahead
> | for the weekend on Fridays (5)?
>
> Try using -l 0 and see if that makes a difference, the lookahead stuff
> is wacko, the weekend variation is just plain insane (IMO). But that's
> what it is supposed to do, so ...
./calendar -d 1005 -l 0
gives me the same line.
> Are you attempting (or expecting) to have the cpp nonsense work?
Yes, "#include <foo>" usually works with files in ~/.calendar and
CALENDAR_DIR set to it. I just found this issue because I was using a
remote backup and the file I was using for tests wasn't in
~/.calendar.
> I'll also take a look at Jeremey's tests from his 2008 message, and see how
> much of that is still broken. Jeremey, if you want to send me either the
> calendar.c with the patches you're using in it, or the patches you received,
> I'll see if I can reconcile it all. Then someone can commit it, perhaps...
Sounds good, thanks!
Thomas
Home |
Main Index |
Thread Index |
Old Index