search for: ascii_to_unistr

Displaying 1 result from an estimated 1 matches for "ascii_to_unistr".

2001 Oct 23
1
PATCH to Samba >= 2.2.1, accents and special chars
...+= clistr_push(cli, p, path2, -1, STR_TERMINATE | STR_CONVERT); cli_setup_bcc(cli, p); cli_send_smb(cli); And clistr_push says : /* the server likes unicode. give it the works */ if (flags & STR_CONVERT) { dos_PutUniCode(dest, src, dest_len, flags & STR_TERMINATE); } else { ascii_to_unistr(dest, src, dest_len); } No such luck, src is NOT in Dos format but in Unix format. Hence all my troubles. The same ting is done/not done anymore in cli_open, cli_mkdir, etc. My fix is easy. It's just a call to unix_to_dos in the proper place. The patch may be applied to samba 2.2.1a...