NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/53563 CVS commit: src/usr.bin/printf



The following reply was made to PR standards/53563; it has been noted by GNATS.

From: "Robert Elz" <kre%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/53563 CVS commit: src/usr.bin/printf
Date: Fri, 31 Aug 2018 17:27:35 +0000

 Module Name:	src
 Committed By:	kre
 Date:		Fri Aug 31 17:27:35 UTC 2018
 
 Modified Files:
 	src/usr.bin/printf: printf.1 printf.c
 
 Log Message:
 PR standards/53563
 
 POSIX requires that signed numbers (strings preceded by '+' or '-')
 be allowed as inputs to all of the integer format conversions, including
 those which treat the data as unsigned.
 
 Hence we do not need a variant function whose only difference from its
 companion is to reject strings starting with '-' - instead we use
 the primary function (getintmax()) for everything and remove getuintmax().
 
 Minor update to the man page to indicate that the arg to all of the
 integer conversions (diouxX) must be an integer constant (with an
 optional sign) and to make it blatantly clear that %o is octal and
 %u is unsigned decimal (for some reason those weren't explicitly stated
 unlike d i x and X).  Delete "respectively", it is not needed (and does
 not really apply).
 
 XXX pullup -8
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.30 -r1.31 src/usr.bin/printf/printf.1
 cvs rdiff -u -r1.42 -r1.43 src/usr.bin/printf/printf.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index