Skip to content
Commit fd3ba42c authored by Frediano Ziglio's avatar Frediano Ziglio Committed by Steve French
Browse files

Convert properly UTF-8 to UTF-16



wchar_t is currently 16bit so converting a utf8 encoded characters not
in plane 0 (>= 0x10000) to wchar_t (that is calling char2uni) lead to a
-EINVAL return. This patch detect utf8 in cifs_strtoUTF16 and add special
code calling utf8s_to_utf16s.

Signed-off-by: default avatarFrediano Ziglio <frediano.ziglio@citrix.com>
Acked-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
parent b7a10626
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment