Bug#756602: printf(3) manpage: please document that %n can't include flags, width or precision

2014-08-01 Thread Michael Kerrisk (man-pages)
On Thu, Jul 31, 2014 at 6:41 PM, Jakub Wilk jw...@debian.org wrote: * Michael Kerrisk mtk.manpa...@gmail.com, 2014-07-31, 12:42: I've applied the patch below. Thanks! +That argument shall be an +.I int\ *, +or variant, as specified by the +.B l +or +.B ll +length modifier. Hmm.

Bug#756602: printf(3) manpage: please document that %n can't include flags, width or precision

2014-08-01 Thread Jakub Wilk
* Michael Kerrisk mtk.manpa...@gmail.com, 2014-08-01, 08:55: [[ That argument shall be an .I int\ *, or variant whose size matches the (optionally) supplied integer length modifier. ]] Looks good to me, thanks! Now I noticed that in the The length modifier subsection, the n conversion is

Bug#756602: printf(3) manpage: please document that %n can't include flags, width or precision

2014-08-01 Thread Michael Kerrisk (man-pages)
On Fri, Aug 1, 2014 at 12:46 PM, Jakub Wilk jw...@debian.org wrote: * Michael Kerrisk mtk.manpa...@gmail.com, 2014-08-01, 08:55: [[ That argument shall be an .I int\ *, or variant whose size matches the (optionally) supplied integer length modifier. ]] Looks good to me, thanks! Now I

Bug#756602: printf(3) manpage: please document that %n can't include flags, width or precision

2014-07-31 Thread Jakub Wilk
Package: manpages-dev Version: 3.65-1 Severity: minor The only place where flags for the n conversion are mentioned in description of the 0 flag: Except for n conversions, ... This is a bit odd, because the other flags don't make sense for %n either. In fact, the C99 standard says

Bug#756602: printf(3) manpage: please document that %n can't include flags, width or precision

2014-07-31 Thread Michael Kerrisk (man-pages)
tags 756602 fixed-upstream thanks Hello Jakub, I've applied the patch below. Cheers, Michael --- a/man3/printf.3 +++ b/man3/printf.3 @@ -332,9 +332,7 @@ For other conversions, the behavior is undefined. .B \- The converted value is to be left adjusted on the field boundary. (The default is

Bug#756602: printf(3) manpage: please document that %n can't include flags, width or precision

2014-07-31 Thread Jakub Wilk
* Michael Kerrisk mtk.manpa...@gmail.com, 2014-07-31, 12:42: I've applied the patch below. Thanks! +That argument shall be an +.I int\ *, +or variant, as specified by the +.B l +or +.B ll +length modifier. Hmm. Why only l or ll? According to the C99 standard, all the length modifiers that