Bug 240427 - Calendar(1): parses SatSecond wrong for September 2019
Summary: Calendar(1): parses SatSecond wrong for September 2019
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.0-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-08 21:45 UTC by carlj
Modified: 2019-09-08 21:45 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description carlj 2019-09-08 21:45:30 UTC
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.