On Monday, 20 June 2016 at 05:44:53 UTC, Mike Parker wrote:
It shouldn't hurt to use the A variant, as Windows will do the
necessary conversions under the hood. However, I'd love to know
what the problem is with converting wchar* to a string type.
This also prints an address:
auto foo = "I'm a wstring"w.ptr;
writeln(to!wstring(foo));
There was a bug report in std.conv, which was partially fixed in
master branch (the one I used). Compiling your code with that fix
produces the expected result. However it seems something is still
missing.
Regarding GetCommandLineA, I could use it but I believe this
would exclude several eastern languages, for example.