git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53872
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
cres = iconv(w2m, ICONV_CHAR_CAST(&inbuf), &inbuflen, &dst, &outbuflen);
res = dstLen - outbuflen;
cres = iconv(w2m, ICONV_CHAR_CAST(&inbuf), &inbuflen, &dst, &outbuflen);
res = dstLen - outbuflen;
-
- // NB: iconv was given only wcslen(src) characters on input, and so
- // it couldn't convert the trailing zero. Let's do it ourselves
- // if there's some room left for it in the output buffer.
- if (res < dstLen)
- dst[0] = 0;
}
else // no destination buffer
{
}
else // no destination buffer
{