diff options
author | Frediano Ziglio <frediano.ziglio@citrix.com> | 2012-08-07 04:33:03 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-13 05:47:25 +0900 |
commit | f092bb8648c2b021d64c3586f04e1dbdad2329b5 (patch) | |
tree | 1ba7d5f160a397f15c29f789bbd896e3e934d1f5 /COPYING | |
parent | edaee892afe84265616675d31a286a493644c230 (diff) |
Convert properly UTF-8 to UTF-16
commit fd3ba42c76d3d4b776120c2b24c1791e7bb3deb1 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions