Bug 8385 – to!wstring("Hello, world!"w.ptr) == "4"

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-07-13T05:31:00Z
Last change time
2012-07-13T05:37:09Z
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2012-07-13T05:31:22Z
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
Comment #1 by dlang-bugzilla — 2012-07-13T05:37:09Z
No, that's not right. This is a combination of multiple bugs (incl. a regression). Filing new bugs.