init_unistr2 length calculation

Alexander Bokovoy a.bokovoy at
Wed Feb 12 18:21:56 GMT 2003

On Wed, Feb 12, 2003 at 01:18:00PM -0500, Ken Cross wrote:
> I'm not sure that 2 is a valid assumption.  We're using UTF-8 for the
> Unix charset, and a multi-byte character can be as much as 6 bytes.
_after_ reencoding to UCS2 the length of string in characters will be
(bytes length)/2.

/ Alexander Bokovoy
Wanna buy a duck?

More information about the samba-technical mailing list