Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 2010 14:50:02 GMT
From:      Wayne Sierke <ws@au.dyndns.ws>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/145748: hexdump(1) %s format qualifier broken
Message-ID:  <201004201450.o3KEo23m055950@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/145748; it has been noted by GNATS.

From: Wayne Sierke <ws@au.dyndns.ws>
To: Garrett Cooper <yanegomi@gmail.com>
Cc: bug-followup@freebsd.org
Subject: Re: bin/145748: hexdump(1) %s format qualifier broken
Date: Wed, 21 Apr 2010 00:03:30 +0930

 > The fact that "%4s" fails and isn't noted in the addendum is a failure
 > according to the specifications of hexdump as per the manpage; "%.4s"
 > passing is a reasonable workaround for broken "%[:digit:]s"
 > functionality.
 
 I should have made my earlier reply more explicit. It doesn't seem to be
 a failure.
 
 The part of the hexdump(1) manpage quoted previously:
 
 o A byte count or field precision is required for each ``s'' con-
 version character (unlike the fprintf(3) default which prints
 the entire string if the precision is unspecified).
 
 And as observed hexdump does accept the required value when passed a
 "field precision" - the numeric value immediately after the period in
 "%.4s" (NB not a "field width" - as described in fprintf(3) and slightly
 more clearly in printf(3)).
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004201450.o3KEo23m055950>