From: Bruce LaVigne (bruce@hp.com)
Date: Tue Feb 24 2004 - 11:52:58 PST
As a user, I have taken the "...and leading zeros are never printed" to mean
that the string is not preceeded by ascii "0" character(s); but the size of
displayed data still reflects the presence or absence of the 0 in the format
string (%s vs. %0s). This is important when formatting data in fields -
please do not break this behaviour (that is, I agree wholeheartedly with Steven)!
-bruce
Steven Sharp wrote:
> Note that examples like the one in 2.6.2 are not normative. And in this
> case, it would have been very easy for leading blanks in the example output
> to have been lost during document formatting.
>
> The text in 17.1.1.7 is more of an issue. It is my belief that this text
> is simply wrong.
>
> I have traced both sets of text back. The same text appears in the 1995
> IEEE standard, the 1993 OVI 2.0 standard, and the Verilog-XL Reference
> Manual. This does not match the behavior of Verilog-XL, which prints
> leading zero bytes as blanks. The behavior in Verilog-XL appears to be
> deliberate, since the %0s format does eliminate the leading blanks for
> zero bytes. It seems clear that this was a documentation error in the
> XL manual, which has been copied into subsequent specifications.
>
> As Mac notes, this would be consistent with the behavior of other formats,
> where leading zeros or spaces are printed unless a 0 appears after the %.
> I will file an erratum on this.
>
> Steven Sharp
> sharp@cadence.com
>
>
-- Bruce LaVigne ASIC Design Engineer Hewlett-Packard Company ProCurve Networking Business 8000 Foothills Blvd, m/s 5672 phone: (916) 785-4194 Roseville, CA 95747-5672 email: bruce@hp.com
This archive was generated by hypermail 2.1.4
: Tue Feb 24 2004 - 11:38:02 PST
and
sponsored by Boyd Technology, Inc.