Bug#696814: [Debian-hebrew-package] Bug#696814: libhdate1: Missing last week of February

2013-09-21 Thread Tzafrir Cohen
On Thu, Dec 27, 2012 at 05:52:08PM +0200, Yair Yarom wrote:
 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.

Thanks for your fix. But I cannot have our hcal print the wrong calendar
on Feb 2032.

I decided to slightly rewrite that part. It now accepts a year
parameter and checks for a leap year with __isleap(), which I hope is
OK. Patch is now commited to SVN and package should hopefully be
uploaded shortly.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend


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



Bug#696814: libhdate1: Missing last week of February

2012-12-27 Thread Yair Yarom
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;
 		}
 	}