www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16676] New: [REG2.072.0] std.format fails with %02d in


          Issue ID: 16676
           Summary: [REG2.072.0] std.format fails with %02d in dstring
                    format string
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

//////////////// test.d ///////////////
import std.string;

void main()
    assert("%02d"d.format(1) == "01"d);

Code throws "Incorrect format specifier: 02d" exception at runtime.

Introduced in https://github.com/D-Programming-Language/phobos/pull/4427.

Nov 09 2016