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 <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html