1
0
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:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent d7b2087865
commit decc6ebca2
2 changed files with 1319 additions and 2 deletions

1317
source/lib/domain_namemap.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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)