commit | fd3ba42c76d3d4b776120c2b24c1791e7bb3deb1 | [log] [tgz] |
---|---|---|
author | Frediano Ziglio <frediano.ziglio@citrix.com> | Tue Aug 07 04:33:03 2012 -0500 |
committer | Steve French <smfrench@gmail.com> | Sun Oct 07 20:04:53 2012 -0500 |
tree | 1e08474b01069313451fc646e2b4a236029598d5 | |
parent | b7a10626c8bc88fd097a8bb4486c89558f89320c [diff] |
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: Frediano Ziglio <frediano.ziglio@citrix.com> Acked-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com>