This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2194] printf: meaning of precision for 'd', 'i', 'o', 'u', 'x', 'X' directives
- From: "schwab at suse dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 23 Jan 2006 15:35:22 -0000
- Subject: [Bug libc/2194] printf: meaning of precision for 'd', 'i', 'o', 'u', 'x', 'X' directives
- References: <20060123151149.2194.bruno@clisp.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From schwab at suse dot de 2006-01-23 15:35 -------
Subject: Re: New: printf: meaning of precision for 'd', 'i', 'o', 'u', 'x', 'X' directives
"bruno at clisp dot org" <sourceware-bugzilla@sourceware.org> writes:
> Expected output according to POSIX:
>
> 0.000.000.001
> 0.000.000.012
> 0.000.000.123
> 0.000.001.234
> 0.000.012.345
> 0.000.123.456
> 0.001.234.567
> 0.012.345.678
> 0.123.456.789
> 1.234.567.890
> 12.345.678.901
> 123.456.789.012
Why do you think the grouping characters should be inserted after the
padding? POSIX says in the description of the '0' flag:
If the â??0â?? and â??â??â?? flags both appear, the grouping characters are
inserted before zero padding.
Andreas.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=2194
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.