Bug 21820 – std.format: formatting zero should never lead to empty string
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-04-11T15:50:09Z
Last change time
2021-04-15T07:12:19Z
Assigned to
No Owner
Creator
Berni44
Comments
Comment #0 by bugzilla — 2021-04-11T15:50:09Z
assert(format!"%#.0o"(0) == "0");
Comment #1 by dlang-bot — 2021-04-13T20:05:05Z
@berni44 created dlang/phobos pull request #7965 "std.format: New version for formatting integral values using writeAligned" mentioning this issue:
- Issue 21820 - std.format: formatting zero should never lead to empty string
https://github.com/dlang/phobos/pull/7965
Comment #2 by dlang-bot — 2021-04-15T07:12:19Z
dlang/phobos pull request #7965 "std.format: New version for formatting integral values using writeAligned" was merged into master:
- 72cfed4bbaea8cdb4fa55081e075eff8e3514ed6 by berni44:
Fix Issue 21820 - std.format: formatting zero should never lead to empty string
https://github.com/dlang/phobos/pull/7965