www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11152] New: formatChar doesn't handle `\0`

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11152

           Summary: formatChar doesn't handle `\0`
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Phobos
        AssignedTo: monarchdodra gmail.com
        ReportedBy: monarchdodra gmail.com


--- Comment #0 from monarchdodra gmail.com 2013-10-01 10:10:17 PDT ---
//----
import std.stdio;

void main()
{
   writeln(["\0"]);
}
//----

Produces:
["\x00"]

Expected:
["\0"]

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 01 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11152



--- Comment #1 from github-bugzilla puremagic.com 2013-10-02 13:39:55 PDT ---
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`

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 02 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11152


David Nadlinger <code klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |code klickverbot.at
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 02 2013