[Issue 15663] New: writefln("%#o", 0); -> "00"

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Feb 9 02:44:50 PST 2016


https://issues.dlang.org/show_bug.cgi?id=15663

          Issue ID: 15663
           Summary: writefln("%#o", 0); -> "00"
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: trivial
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: Marco.Leise at gmx.de

The #-flag should prefix %o, %x and %X with '0', '0x' and '0X' respectively, IF
the input is different from 0. While the hex printout matches printf(), the
octal output is "00" instead of "0".

--


More information about the Digitalmars-d-bugs mailing list