Package: bsdmainutils
Version: 11.1.2+b1
Severity: normal
File: /usr/bin/ncal

Dear Maintainer,

I was interested in [n]cal's behaviour around the Gregorian adoption
dates and noticed that ncal -b defaults to October 1582 regardless of
locale or -s specified country code, whereas plain "cal" uses the locale
correctly.

There follows an example shell session. Use of the "env" command is to
ensure shell aliases and functions are not responsible for the
unexpected behaviour.

Best Regards,
Carl W.


$ env cal 9 1752
   September 1752
Su Mo Tu We Th Fr Sa
       1  2 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30



$ env ncal 9 1752
    September 1752
Mo    18 25
Tu  1 19 26
We  2 20 27
Th 14 21 28
Fr 15 22 29
Sa 16 23 30
Su 17 24
$ env ncal -b 9 1752
   September 1752
Mo Tu We Th Fr Sa Su
             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

$ env ncal -p
 AL Albania        1912-11-30      IT Italy          1582-10-04
 AT Austria        1583-10-05      JP Japan          1918-12-18
 AU Australia      1752-09-02      LI Lithuania      1918-02-01
 BE Belgium        1582-12-14      LN Latin          9999-05-31
 BG Bulgaria       1916-03-18      LU Luxembourg     1582-12-14
 CA Canada         1752-09-02      LV Latvia         1918-02-01
 CH Switzerland    1655-02-28      NL Netherlands    1582-12-14
 CN China          1911-12-18      NO Norway         1700-02-18
 CZ Czech Republic 1584-01-06      PL Poland         1582-10-04
 DE Germany        1700-02-18      PT Portugal       1582-10-04
 DK Denmark        1700-02-18      RO Romania        1919-03-31
 ES Spain          1582-10-04      RU Russia         1918-01-31
 FI Finland        1753-02-17      SI Slovenia       1919-03-04
 FR France         1582-12-09      SE Sweden         1753-02-17
*GB United Kingdom 1752-09-02      TR Turkey         1926-12-18
 GR Greece         1924-03-09      US United States  1752-09-02
 HU Hungary        1587-10-21      YU Yugoslavia     1919-03-04
 IS Iceland        1700-11-16
$ env ncal -s GB 9 1752
    September 1752
Mo    18 25
Tu  1 19 26
We  2 20 27
Th 14 21 28
Fr 15 22 29
Sa 16 23 30
Su 17 24
$ env ncal -b 9 1752
   September 1752
Mo Tu We Th Fr Sa Su
             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

$ env ncal -s GB -b 9 1752
   September 1752
Mo Tu We Th Fr Sa Su
             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

$ env ncal -b 9 1752 -s GB
   September 1752
Mo Tu We Th Fr Sa Su
             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

$ env ncal -b 10 1582 -s GB
    October 1582
Mo Tu We Th Fr Sa Su
 1  2  3  4 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31



$


-- System Information:
Debian Release: 10.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-9-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.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  libc6        2.28-10
ii  libtinfo6    6.1+20181013-2+deb10u2

bsdmainutils recommends no packages.

Versions of packages bsdmainutils suggests:
ii  cpp                   4:8.3.0-1
pn  vacation              <none>
ii  wamerican [wordlist]  2018.04.16-1
ii  wbritish [wordlist]   2018.04.16-1
ii  whois                 5.4.3

-- no debconf information

Reply via email to