[Issue 8385] New: to!wstring("Hello, world!"w.ptr) == "4"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 13 05:31:23 PDT 2012


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: nobody at puremagic.com
        ReportedBy: thecybershadow at gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow at 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: -------


More information about the Digitalmars-d-bugs mailing list