This fixes the calculation of needed space for destination unicode charset.
The last 4 patches address bug #7594 ("wbinfo -u" and "wbinfo -g" gives no
output (log=>ndr_pull_error)).
(cherry picked from commit
8e46bff8b88103f4a5b0d3920ab6e3901decaf22)
case CH_UTF16LE:
case CH_UTF16BE:
case CH_UTF16MUNGED:
- return strlen_m_term((const char *)var);
+ case CH_UTF8:
+ return strlen_m_ext_term((const char *)var, chset);
case CH_DISPLAY:
case CH_DOS:
case CH_UNIX:
- case CH_UTF8:
return strlen((const char *)var)+1;
}