Package: gcc-4.3
Version: 4.3.1-2
Severity: wishlist

Some projects like exif use statements like this for aligning the output:

fprintf (stdout, "%-20.20s", C(CN(exif_tag_get_title_in_ifd (e->tag, ifd))));
printf ("|");

and this doesn't work (i.e., the output is misaligned because bytes, 
characters and cells are completely different things) in multibyte locales. 
IMHO it is a good idea to educate such ignorant upstreams with a new warning 
about printf format strings that specify %s and the field width (and possibly 
precision).

-- 
Alexander E. Patrakov



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to