[Issue 6130] New: utf.toUTF16z needs to be callable with any string type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 8 17:59:24 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6130
Summary: utf.toUTF16z needs to be callable with any string type
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-06-08 17:54:51 PDT ---
Currently only passing UTF8 strings works. wstrings should be supported too:
wstring a = "foo";
toUTF16z(a);
testwstring.d(12): Error: function std.utf.toUTF16z (in const(char[]) s) is not
callable using argument types (immutable(wchar)[])
testwstring.d(12): Error: cannot implicitly convert expression (a) of type
immutable(wchar)[] to const(char[])
--
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