Bug#926437: bsdmainutils: ncal week numbering for 2019 is off by one

2020-05-28 Thread Pasi Savolainen
Even if `ncal: setlocale: No such file or directory` is about my
system not having "en_US" generated and falling back to LANG=C, I just
can't find a place showing week 1 of 2019 being 6th-12th January 2019
for US.

f.ex:
https://www.timeanddate.com/calendar/custom.html?year=2019=1=1=1=1
https://savvytime.com/week-number/united-states/2019
https://www.epochconverter.com/weeks/2019



Bug#926437: bsdmainutils: ncal week numbering for 2019 is off by one

2019-05-02 Thread Pasi Savolainen
Seems to be affected by `$LANG` (or derivative) as for example this
gives correct week number:

$ LANG=C ncal -w 01 2019
January 2019
Su 6 13 20 27
Mo 7 14 21 28
Tu  1  8 15 22 29
We  2  9 16 23 30
Th  3 10 17 24 31
Fr  4 11 18 25
Sa  5 12 19 26
1  2  3  4  5
$ echo $LANG
en_US.UTF-8
$ date +%V   # this works correctly regardless.
18


pasi



Bug#926437: bsdmainutils: ncal week numbering for 2019 is off by one

2019-04-05 Thread madonius
Package: bsdmainutils
Version: 11.1.2+b1
Severity: important

Dear Maintainer,

according to ISO8601:
"the first calendar week of a calendar year is the week including the first 
Thursday of that year"

Running `ncal -w 01 2019` yields

```
January 2019  
Su 6 13 20 27   
Mo 7 14 21 28   
Tu  1  8 15 22 29   
We  2  9 16 23 30   
Th  3 10 17 24 31   
Fr  4 11 18 25  
Sa  5 12 19 26  
   52  1  2  3  4
```

Adhearing to the aforementioned standard I would expect the week of
2019-01-01 to 2019-05-01 to be calendar week 1.

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages bsdmainutils depends on:
ii  bsdutils 1:2.33.1-0.1
ii  debianutils  4.8.6.1
ii  libbsd0  0.9.1-2
ii  libc62.28-8
ii  libtinfo66.1+20181013-2

bsdmainutils recommends no packages.

Versions of packages bsdmainutils suggests:
ii  cpp 4:8.3.0-1
pn  vacation
ii  wamerican [wordlist]2018.04.16-1
ii  wgerman-medical [wordlist]  20160103-3
ii  whois   5.4.2
ii  wngerman [wordlist] 20161207-7
ii  wogerman [wordlist] 1:2-35

-- no debconf information