Package: libhdate1
Version: 1.6-1
Severity: normal
Tags: patch
Dear Maintainer,
When displaying February it is limited to only four lines of week, causing it
to usually miss its last week.
e.g.
$ hcal 02 2013
February 2013 Sh'vat - Adar 5773
Sun Mon Tue Wed Thu Fri Sat
1/21 2/22
3/23 4/24 5/25 6/26 7/27 8/28 9/29
10^30 11/ 1 12/ 2 13/ 3 14/ 4 15/ 5 16/ 6
17/ 7 18/ 8 19/ 9 20/10 21@11 22/12 23/13
which is missing 5 days.
The provided path partially fixes this, except when the 29th of February falls
on Sunday.
Regards,
Yair.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.6.7-aufs-mos-1 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libhdate1 depends on:
ii libc6 2.13-35
libhdate1 recommends no packages.
libhdate1 suggests no packages.
-- no debconf information
--- /cs/system/irush/yard/hcal/libhdate-1.6/examples/hcal/hcal.c 2012-01-09 03:58:45.0 +0200
+++ hcal.c 2012-12-27 16:44:35.400295151 +0200
@@ -1181,6 +1181,8 @@ int print_calendar ( const int current_m
case 12: if (start_dow 5) max_calendar_lines = 6;
else if (max_calendar_lines == 4) max_calendar_lines = 5;
break;
+ case 2: if (start_dow 1 max_calendar_lines == 4) max_calendar_lines = 5;
+ break;
}
}