diff options
author | Frediano Ziglio <frediano.ziglio@citrix.com> | 2012-08-07 11:33:03 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-10-08 03:04:53 +0200 |
commit | fd3ba42c76d3d4b776120c2b24c1791e7bb3deb1 (patch) | |
tree | 1e08474b01069313451fc646e2b4a236029598d5 /security/inode.c | |
parent | [CIFS] WARN_ON_ONCE if kernel_sendmsg() returns -ENOSPC (diff) | |
download | linux-fd3ba42c76d3d4b776120c2b24c1791e7bb3deb1.tar.xz linux-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 'security/inode.c')
0 files changed, 0 insertions, 0 deletions