On Wednesday, 23 January 2019 at 14:12:09 UTC, Jonathan M Davis wrote:
On Wednesday, January 23, 2019 5:42:55 AM MST FrankLike via

std.conv.to will allow you to convert between string and wstring, but for calling C functions, you still need the strings to be zero-terminated unless the function specifically takes an argument indicating the number of characters in the string. Strings in D are not zero-terminated, so std.conv.to is not going to produce strings that work with C functions. std.conv.to and std.utf.toUTFz solve different problems.

[...]

Thank you.

Reply via email to