http://d.puremagic.com/issues/show_bug.cgi?id=8385

           Summary: to!wstring("Hello, world!"w.ptr) == "4"
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: thecybersha...@gmail.com


--- Comment #0 from Vladimir Panteleev <thecybersha...@gmail.com> 2012-07-13 
05:31:22 PDT ---
import std.stdio;
import std.conv;
import std.string;

void main()
{
    writeln(to!wstring("Hello, world!"w.ptr));
}

Apparently, on some systems the answer can be "8":
http://dpaste.dzfl.pl/7404febe

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

Reply via email to