init_uni_hdr() problem

TAKAHASHI Motonobu monyo at samba.org
Wed Oct 24 11:23:08 GMT 2001


Andrew Bartlett wrote:

>I looked at this problem a little while back and produced the
>following patch:
>
>http://samba.org/cgi-bin/samba-patches/incoming?id=479;expression=abartlet;user=guest
>
>Can you give it a test - I think it solves the problem a little better.

No, these variable must be set the number of chars in Unicode.
And at least Japanese Unicode char number is NOT same as strlen(str).
Nor NOT len_bytes/sizeof(unit16).

-----
TAKAHASHI, Motonobu(monyo)         monyo at samba.org

Samba Team - http://samba.org/     Samba-JP - http://www.samba.gr.jp/  
JWNTUG - http://www.jwntug.or.jp/  Analog-JP - http://www.jp.analog.cx/
MCSE+I, MCSE(W2K), SCNA, CCNA, Turbo-CI




More information about the samba-technical mailing list