cal(1): unaligned weekdays for hungarian locale

Bug #179829 reported by Ákos Mattiassich
4
Affects Status Importance Assigned to Milestone
bsdmainutils (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

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.

Revision history for this message
Andreas Moog (ampelbein) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Ubuntu release? Thanks in advance.

Changed in bsdmainutils:
assignee: nobody → andreas-moog
status: New → Incomplete
Revision history for this message
Andreas Moog (ampelbein) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in bsdmainutils:
assignee: andreas-moog → nobody
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.