Package: bsdmainutils
Version: 8.0.13

As reported by Martin Owens as Ubuntu bug 693499 
https://bugs.launchpad.net/ubuntu/+source/bsdmainutils/+bug/693499

cal -m feb 2022

prints the entire year rather than just the month (which used to work 
and is described in the man page).

The following patch seems to fix it, I've done a bunch of basic tests on it
which seem OK but not tried everything. I wrote it against 8.0.17 on Ubuntu.

Dave

--- bsdmainutils-8.0.17/usr.bin/ncal/ncal.c     2010-12-25 01:21:34.706290002 
+0000
+++ bsdmainutils-8.0.17-daveg/usr.bin/ncal/ncal.c       2010-12-25 
01:21:50.666290002 +0000
@@ -412,7 +412,7 @@
 
        if (flag_easter)
                printeaster(y, flag_julian_cal, flag_orthodox);
-       else if (argc == 1 || flag_hole_year) {
+       else if (!flag_month || flag_hole_year) {
                /* disable the highlight for now */
                /* today = 0; */
                if (flag_backward)



Dave

-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\ gro.gilbert @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to