public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/40945]  New: printf doesn't force sign with precision
@ 2009-08-02 23:42 naddiseo at gmail dot com
  2009-08-02 23:46 ` [Bug libstdc++/40945] " paolo dot carlini at oracle dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: naddiseo at gmail dot com @ 2009-08-02 23:42 UTC (permalink / raw)
  To: gcc-bugs

Unless my understanding of the "+" flag is incorrect the following examples
fail:

printf("|%+.3i|", 0)
expected "|+000|"
actual   "|000|" 

printf("|%+5.3i|", 0)
expected | +000|
actual   |  000|

printf("|%+.3i|", 127)
expected |+127|
actual   |127|

printf("|+5.3i|", 127)
expected | +127|
actual   |  127|


-- 
           Summary: printf doesn't force sign with precision
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: naddiseo at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40945


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/40945] printf doesn't force sign with precision
  2009-08-02 23:42 [Bug libstdc++/40945] New: printf doesn't force sign with precision naddiseo at gmail dot com
@ 2009-08-02 23:46 ` paolo dot carlini at oracle dot com
  2009-08-03  0:01 ` naddiseo at gmail dot com
  2009-08-03  0:27 ` paolo dot carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-08-02 23:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from paolo dot carlini at oracle dot com  2009-08-02 23:46 -------
I'm not even going to read your report, sorry, this is a C library issue, if
anything.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40945


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/40945] printf doesn't force sign with precision
  2009-08-02 23:42 [Bug libstdc++/40945] New: printf doesn't force sign with precision naddiseo at gmail dot com
  2009-08-02 23:46 ` [Bug libstdc++/40945] " paolo dot carlini at oracle dot com
@ 2009-08-03  0:01 ` naddiseo at gmail dot com
  2009-08-03  0:27 ` paolo dot carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: naddiseo at gmail dot com @ 2009-08-03  0:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from naddiseo at gmail dot com  2009-08-03 00:01 -------
Oh, a glibc issue? I guess I"ll go report it there. Thanks for replying so
fast.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40945


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/40945] printf doesn't force sign with precision
  2009-08-02 23:42 [Bug libstdc++/40945] New: printf doesn't force sign with precision naddiseo at gmail dot com
  2009-08-02 23:46 ` [Bug libstdc++/40945] " paolo dot carlini at oracle dot com
  2009-08-03  0:01 ` naddiseo at gmail dot com
@ 2009-08-03  0:27 ` paolo dot carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-08-03  0:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo dot carlini at oracle dot com  2009-08-03 00:27 -------
By the way, I can't reproduce the problem with any recent glibc: before
reporting anything, make sure to double check any potential issue on systems
running, say, at least, glibc2.4 or 2.5 (the last official release is 2.10.1)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40945


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-03  0:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-02 23:42 [Bug libstdc++/40945] New: printf doesn't force sign with precision naddiseo at gmail dot com
2009-08-02 23:46 ` [Bug libstdc++/40945] " paolo dot carlini at oracle dot com
2009-08-03  0:01 ` naddiseo at gmail dot com
2009-08-03  0:27 ` paolo dot carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).