Bug 16676 – [REG2.072.0] std.format fails with %02d in dstring format string

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-11-09T08:32:00Z
Last change time
2016-11-16T23:40:37Z
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2016-11-09T08:32:24Z
//////////////// 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.
Comment #1 by coolreader.org — 2016-11-09T09:14:12Z
Same issue with wstring format
Comment #2 by code — 2016-11-16T23:40:37Z
*** This issue has been marked as a duplicate of issue 16661 ***