This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/2194] printf: meaning of precision for 'd', 'i', 'o', 'u', 'x', 'X' directives


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]