NetBSD-Bugs archive

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

PR/53563 CVS commit: [netbsd-8] src/usr.bin/printf

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

From: "Martin Husemann" <>
Subject: PR/53563 CVS commit: [netbsd-8] src/usr.bin/printf
Date: Sat, 1 Sep 2018 06:28:23 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sat Sep  1 06:28:23 UTC 2018
 Modified Files:
 	src/usr.bin/printf [netbsd-8]: printf.c
 Log Message:
 Pull up following revision(s) (requested by kre in ticket #1002):
 	usr.bin/printf/printf.1: revision 1.31 (via patch)
 	usr.bin/printf/printf.c: revision 1.43
 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.37.8.1 -r1.37.8.2 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