Date: Tue, 30 Nov 1999 11:30:02 +0100 To: jhs@ From: gnats-admin@_ERASE_FreeBSD.org Subject: Re: bin/15182: /usr/src/usr.bin/calendar Nov 31* from * Wed-1 Thank you very much for your problem report. It has the internal identification `bin/15182'. The individual assigned to look at your report is: freebsd-bugs. SEND-PR: -*- send-pr -*- SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as SEND-PR: will all comments (text enclosed in `<' and `>'). SEND-PR: SEND-PR: Please consult the send-pr man page `send-pr(1)' or the Texinfo SEND-PR: manual if you are not sure how to fill out a problem report. SEND-PR: SEND-PR: Note that the Synopsis field is mandatory. The Subject (for SEND-PR: the mail) will be made the same as Synopsis unless explicitly SEND-PR: changed. SEND-PR: SEND-PR: Choose from the following categories: SEND-PR: SEND-PR: bin conf docs gnu i386 kern misc ports SEND-PR: To: FreeBSD-gnats-submit@_ERASE_freebsd.org Subject: /usr/src/usr.bin/calendar Nov 31* from * Wed-1 From: jhs@ Reply-To: jhs@ X-send-pr-version: 3.2 >Submitter-Id: current-users >Originator: Julian H. Stacey jhs@ >Confidential: no >Synopsis: "* Wed-1 event" in calendar produces "31 Nov* event" in mail >Severity: non-critical >Priority: low >Category: bin >Release: FreeBSD 3.3-RELEASE i386 >Class: sw-bug >Environment: >Description: .calendar/calendar containing just 1 line: * Wed-1 MECC, Last Wednesday In Month calendar outputs Nov 31* MECC, Last Wednesday In Month >How-To-Repeat: Put in your ~/.calendar * Wed-1 There is no 31 Nov 1999, Wednesday is 1st December wind the clock back to 30 Nov 1999, run calendar. & get the same impossible date I did ! >Fix: I looked at 3.3/src/usr.bin/calendar/day.c: int daytab[][14] = { { 0, -1, 30, 58, 89, 119, 150, 180, 211, 242, 272, 303, 333, 364 }, { 0, -1, 30, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }, }; that 333 seems correct, so a fix is not as trivial as I hoped !