https://issues.dlang.org/show_bug.cgi?id=19151
--- Comment #2 from Bastiaan Veelo <[email protected]> --- 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. --
