www.digitalmars.com         C & C++   DMDScript  

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

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 puremagic.com
          Reporter: Marco.Leise gmx.de


the input is different from 0. While the hex printout matches printf(), the
octal output is "00" instead of "0".

--
Feb 09 2016