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

version graph

Package: manpages-dev; Maintainer for manpages-dev is Dr. Tobias Quathamer <[email protected]>; Source for manpages-dev is src:manpages (PTS, buildd, popcon).

Reported by: Jakub Wilk <[email protected]>

Date: Thu, 31 Jul 2014 09:30:02 UTC

Severity: minor

Tags: fixed-upstream

Found in version manpages/3.65-1

Fixed in version manpages/3.71-1

Done: Simon Paillard <[email protected]>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#756602: printf(3) manpage: please document that %n can't include flags, width or precision
Reply-To: Jakub Wilk <[email protected]>, [email protected]
Resent-From: Jakub Wilk <[email protected]>
Original-Sender: Jakub Wilk <[email protected]>
Resent-To: [email protected]
Resent-CC: [email protected], Martin Schulze <[email protected]>
X-Loop: [email protected]
Resent-Date: Thu, 31 Jul 2014 09:30:02 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: report 756602
X-Debian-PR-Package: manpages-dev
X-Debian-PR-Keywords: 
X-Debian-PR-Source: manpages
Received: via spool by [email protected] id=B.140679885215017
          (code B); Thu, 31 Jul 2014 09:30:02 +0000
Received: (at submit) by bugs.debian.org; 31 Jul 2014 09:27:32 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2-bugs.debian.org_2005_01_02
	(2011-06-06) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-17.9 required=4.0 tests=BAYES_00,FROMDEVELOPER,
	HAS_PACKAGE,RCVD_IN_DNSWL_MED,T_RP_MATCHES_RCVD,X_DEBBUGS_CC,X_DEBBUGS_NO_ACK
	autolearn=ham version=3.3.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 6; hammy, 89; neutral, 41; spammy, 0.
	spammytokens: hammytokens:0.000-+--manpage, 0.000-+--H*u:2014-03-12,
	0.000-+--H*u:1.5.23, 0.000-+--H*UA:1.5.23, 0.000-+--H*UA:2014-03-12
Received: from master.debian.org ([82.195.75.110])
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=master.debian.org,[email protected] (verified)
	by buxtehude.debian.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128)
	(Exim 4.80)
	(envelope-from <[email protected]>)
	id 1XCme4-0003ts-DZ
	for [email protected]; Thu, 31 Jul 2014 09:27:32 +0000
Received: from jwilk by master.debian.org with local (Exim 4.80)
	(envelope-from <[email protected]>)
	id 1XCme2-0002aD-6j
	for [email protected]; Thu, 31 Jul 2014 09:27:30 +0000
Date: Thu, 31 Jul 2014 11:27:26 +0200
From: Jakub Wilk <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
X-Reportbug-Version: 6.5.0
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: Jakub Wilk <[email protected]>
Delivered-To: [email protected]
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 that if the n conversion 
specification includes any flags, a field width, or a precision, the 
behavior is undefined.

Please document this fact in the manual page.

-- 
Jakub Wilk

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Mon Nov 11 10:34:04 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.