Re: cal(1): faulty weekday alignment for hungarian locale

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

 



 Hi Pádraig,

On Wed, Jan 02, 2008 at 04:55:59PM +0000, Pádraig Brady wrote:
> Mattiassich Ákos wrote:
> > 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.
> 
> Yes that is a long standing bug.

 really? That's news for me.

> Your proposed patch will break other locales though.
> It would be great if you could test the attached patch,
> which reuses my center_str() function to do the alignment.

 Please, try

    LANG=cs_CZ.utf8 ./cal -j 2008

 weekday alignment in the second column is incorrect.

> -	center_str(str, lineout, SIZE(lineout), len);
> +	(void) center_str(str, lineout, SIZE(lineout), len);
     ^^^^
 why (void)?

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
-
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