Package: ncal
Version: 12.1.7
Severity: important
Dear Maintainer,
"ncal -w" still [1] lists incorrect week numbers:
$ ncal -w
May 2022
Su 1 8 15 22 29
Mo 2 9 16 23 30
Tu 3 10 17 24 31
We 4 11 18 25
Th 5 12 19 26
Fr 6 13 20 27
Sa 7 14 21 28
19 20 21 22 23
$ cat /etc/debian_version
11.3
$ apt policy ncal
ncal:
Installed: 12.1.7+nmu3
Candidate: 12.1.7+nmu3
Version table:
*** 12.1.7+nmu3 500
500 http://deb.debian.org/debian bullseye/main amd64 Packages
100 /var/lib/dpkg/status
$
For example: The week number of 2022-05-26 is 21, not 22.
The problem seems to be caused by starting the week counter in the last
week auf 2021:
$ ncal -w3 -d 2022-01
December 2021 January 2022 February 2022
Su 5 12 19 26 2 9 16 23 30 6 13 20 27
Mo 6 13 20 27 3 10 17 24 31 7 14 21 28
Tu 7 14 21 28 4 11 18 25 1 8 15 22
We 1 8 15 22 29 5 12 19 26 2 9 16 23
Th 2 9 16 23 30 6 13 20 27 3 10 17 24
Fr 3 10 17 24 31 7 14 21 28 4 11 18 25
Sa 4 11 18 25 1 8 15 22 29 5 12 19 26
49 50 51 52 1 1 2 3 4 5 6 6 7 8 9 10
$
My printed calendar counts week 1 in 2022 from 2022-01-02 on. from
2021-12-26 on.
Do you need further information?
Best regards
anon647
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976192