cal(1): faulty weekday alignment for hungarian locale

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've found this bug originaly in the ubuntu package, but it
is in 2.13-rc1 also reproducible.
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'm not familiar with linux development, but  I hope it helps.
Best regards

Mata

________________________________________________________
VÁSÁROLJON ONLINE! Ezzel a kártyával nem húzzák le!
http://www.klikkbank.hu

-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux