I guess this should do it:

const(wchar)* toUTF16z(in dchar[] s)
{
    return (toUTF16(s) ~ "\000").ptr;
}

Reply via email to