mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Unicode conversion fix in Japanese environment from Motonobu TAKAHASHI.
Jeremy.
This commit is contained in:
parent
d7b2087865
commit
decc6ebca2
1317
source/lib/domain_namemap.c
Normal file
1317
source/lib/domain_namemap.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -61,7 +61,7 @@ int dos_PutUniCode(char *dst,const char *src, ssize_t len)
|
||||
*/
|
||||
|
||||
if (skip == 2)
|
||||
val = ((val << 8) | src[1]);
|
||||
val = ((val << 8) | (src[1] & 0xff));
|
||||
|
||||
SSVAL(dst,ret,doscp_to_ucs2[val]);
|
||||
ret += 2;
|
||||
@ -279,7 +279,7 @@ size_t dos_struni2(char *dst, const char *src, size_t max_len)
|
||||
*/
|
||||
|
||||
if (skip == 2)
|
||||
val = ((val << 8) | src[1]);
|
||||
val = ((val << 8) | (src[1] & 0xff));
|
||||
|
||||
SSVAL(dst,0,doscp_to_ucs2[val]);
|
||||
if (skip)
|
||||
|
Loading…
Reference in New Issue
Block a user