Bug 11152 – formatChar doesn't handle `\0`

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-01T10:10:00Z
Last change time
2015-06-09T05:15:18Z
Assigned to
monarchdodra
Creator
monarchdodra

Comments

Comment #0 by monarchdodra — 2013-10-01T10:10:17Z
//---- import std.stdio; void main() { writeln(["\0"]); } //---- Produces: ["\x00"] Expected: ["\0"]
Comment #1 by github-bugzilla — 2013-10-02T13:39:55Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/2db9413d9693925e463d3ba8591425a79b1456ef Fix Issue 11152 - formatChar doesn't handle `\0` https://github.com/D-Programming-Language/phobos/commit/29c9b568605ffff30d9685d24af68e633880d4e2 Merge pull request #1611 from monarchdodra/11152 Fix Issue 11152 - formatChar doesn't handle `\0`