aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorFrediano Ziglio <frediano.ziglio@citrix.com>2012-08-07 04:33:03 -0500
committerSteve French <smfrench@gmail.com>2012-10-07 20:04:53 -0500
commitfd3ba42c76d3d4b776120c2b24c1791e7bb3deb1 (patch)
tree1e08474b01069313451fc646e2b4a236029598d5 /fs/cifs/connect.c
parent[CIFS] WARN_ON_ONCE if kernel_sendmsg() returns -ENOSPC (diff)
downloadlinux-dev-fd3ba42c76d3d4b776120c2b24c1791e7bb3deb1.tar.xz
linux-dev-fd3ba42c76d3d4b776120c2b24c1791e7bb3deb1.zip
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>
Diffstat (limited to 'fs/cifs/connect.c')
0 files changed, 0 insertions, 0 deletions