Public bug reported:

Binary package hint: bsdmainutils

For hungarian locale is cal(1) output not correct.
The weekdays are not aligned to the columns of the calendar.
cal -3 has an awful output.
I've downloaded the source from here:
ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/util-linux-ng-2.13-rc1.tar.gz
and I see, that the bug was also here reproducible.
I could correct the problem with this patch in 
/util-linux-ng-2.13.1-rc1/misc-utils/cal.c:

@@ -415,7 +415,7 @@
      ssize_t space_left;
      wd = (i + week1stday) % 7;
 #ifdef HAVE_WIDECHAR
-     swprintf(day_headings_wc, SIZE(day_headings_wc), L"%1.2s ", weekday(wd));
+     swprintf(day_headings_wc, SIZE(day_headings_wc), L"%2.2s ", weekday(wd));
      swprintf(j_day_headings_wc, SIZE(j_day_headings_wc), L"%3.3s ", 
weekday(wd));

      space_left = sizeof(day_headings) - (cur_dh - day_headings);

I hope it helps.

** Affects: bsdmainutils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
cal(1): unaligned weekdays for hungarian locale
https://bugs.launchpad.net/bugs/179829
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to