www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: thecybershadow gmail.com



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: -------
Jul 13 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8385


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



05:37:09 PDT ---
No, that's not right. This is a combination of multiple bugs (incl. a
regression). Filing new bugs.

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