[Issue 19151] std.utf.toUTF16z() can not be used for LPWSTR

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 21 20:57:53 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19151

--- Comment #2 from Bastiaan Veelo <Bastiaan at Veelo.net> ---
The return type changed from wchar* to const(wchar*) ages ago, in a commit
called "phobos-2.000". Git reports 10/09/2007, which seems to be the date of
the migration from another RCS.
https://github.com/dlang/phobos/commit/de971890b0c0780942857b92ec11168d827ef715#diff-27410a0be96392a06647e61c73131b64L797

Anyway, this is when toUTF16z stopped working for LPWSTR. Can toUTF16z be
changed to use inout, maybe?

Bastiaan.

--


More information about the Digitalmars-d-bugs mailing list