[Bug 240427] Calendar(1): parses SatSecond wrong for September 2019
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Sep 8 21:45:30 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240427
Bug ID: 240427
Summary: Calendar(1): parses SatSecond wrong for September 2019
Product: Base System
Version: 12.0-RELEASE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: carlj at peak.org
An entry for SatSecond in September 2019 is actually matched for the first
Saturday. This might be related to bug #234663, but my testing seems to show
that this only occurs on months in which the first day is Sunday. The months
of April and July of 2018 also start with Sunday and seem to show the same
problem, as well as September of 2024.
$ grep Shrew calendar
September SatSecond Shrewsbury Fair (2 days)
$ # note: there is a tab after SatSecond
$ cal Sept 2019
September 2019
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
$ calendar -A15 -t 01.09.2019
Sep 7* Shrewsbury Fair (2 days)
$ calendar -A15 -t 01.09.2024
Sep 7* Shrewsbury Fair (2 days)
$ calendar -A15 -t 01.09.2018
Sep 8* Shrewsbury Fair (2 days) <- This one is correct
This was found on an amd64 system with 12.0-RELEASE-p10, but also confirmed
on a RPI2 system running armv7, also with 12.0-RELEASE-p10.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list