]> git.ipfire.org Git - thirdparty/util-linux.git/commit
cal: fix January 1753 week number printout
authorSami Kerola <kerolasa@iki.fi>
Sun, 17 May 2015 17:27:42 +0000 (18:27 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 18 May 2015 09:41:48 +0000 (11:41 +0200)
commitc5ad7b59acc8b12fa2c10624bbf12dc20910f88d
treecedfeb4a5dcd7ebaf7e243200647b9ab5021fecb
parentbffc9174b89d8d9fefe7a77b9350ab8f0dbef54f
cal: fix January 1753 week number printout

Earlier output was clearly broken.

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

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/cal.c
tests/expected/cal/jan1753 [new file with mode: 0644]
tests/ts/cal/jan1753 [new file with mode: 0755]