← Back to index
|
Original Bugzilla link
Bug 7142 – Wrong formatted write of boolean values
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-12-20T04:34:00Z
Last change time
2013-02-03T12:34:39Z
Keywords
pull
Assigned to
andrej.mitrovich
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2011-12-20T04:34:44Z
import std.stdio, std.conv; void main() { writefln("%s %s", true, false); writefln("%6s %6s", true, false); writefln("%6s %6s", text(true), text(false)); } Expected output: true false true false true false But DMD 2.057 outputs: true false true false true false
Comment #1
by andrej.mitrovich — 2013-01-21T18:23:42Z
https://github.com/D-Programming-Language/phobos/pull/1089
Comment #2
by github-bugzilla — 2013-01-21T19:39:49Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/5057ca5404d5d997545c10c0dcd3b8623c096ff6
Fixes Issue 7142 - Implement field width for boolean formatting.
https://github.com/D-Programming-Language/phobos/commit/c89b21e38f5fd22a3d333a1061de6fcfce14a222
Merge pull request #1089 from AndrejMitrovic/Fix7142 Issue 7142 - Implement field width for boolean formatting
Comment #3
by andrej.mitrovich — 2013-02-03T12:34:39Z
*** Issue 8981 has been marked as a duplicate of this issue. ***