Package: bsdmainutils
Version: 8.2.1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch

I was working on this bug independently, didn't realize Kees was working on it too.

Here's an additional patch, it catches the same problem in usr.bin/calendar/io.c. The problem was introduced by the debian quilt patch debian/patches/calendar_wcs.diff, so this patch fixes that patch, rather than layering another one on top. This patch also fixes related compile warnings caused by incorrect handling of wide characters:

------
io.c: In function ‘cal’:
io.c:133:6: warning: format ‘%ls’ expects type ‘wchar_t *’, but argument 3 has type ‘char *’ io.c:216:10: warning: passing argument 1 of ‘swprintf’ from incompatible pointer type /usr/include/bits/wchar2.h:286:1: note: expected ‘wchar_t * __restrict__’ but argument is of type ‘wchar_t (*)[31]’ io.c:227:12: warning: passing argument 1 of ‘swprintf’ from incompatible pointer type /usr/include/bits/wchar2.h:286:1: note: expected ‘wchar_t * __restrict__’ but argument is of type ‘wchar_t **’
------

The compile warning on io.c:133 was causing a locale error message in 'calendar' to incorrectly truncate as:

calendar: switch to locale ``

You can see the related Launchpad bug at https://bugs.launchpad.net/ubuntu/+source/bsdmainutils/+bug/697213

Thanks,
Allison




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to