Some small fixes to our charset conversion code:
authorAndrew Bartlett <abartlet@samba.org>
Sun, 27 Jul 2003 02:28:25 +0000 (02:28 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 27 Jul 2003 02:28:25 +0000 (02:28 +0000)
commit455bb6de903ca3950d965b29190c09f116d91889
tree997319ee22f82f2d2e1c06c365b71c8f385c48ad
parent422c2467a0d23c91feb5008ac2244b4054c27b43
Some small fixes to our charset conversion code:

 - Treat the NMB names in the 'session request' packet as 'ASCII'.  This means
   that we do not get invalid multibyte from the wire, even if we truncate
   in the conversion.  (Otherwise we panic when we try to strupper_m it).

 - Remove acnv_uxu2(), as it was duplicated by push_ucs2_allocate()
 - Remove acnv_dosu2(), as it is not used.

 - In push_ucs2(), with the STR_UPPER flag, do the case conversion *after*
   the UCS2 conversion, when it we know that the length can't change.  Also
   faster, as we don't need to do another 2 UCS2 conversions.

Andrew Bartlett
(This used to be commit 912035af1178424583d0bf887a391a0cac2acd87)
source3/lib/charcnv.c
source3/libsmb/nmblib.c
source3/smbd/mangle_hash.c