From: Frediano Ziglio Date: Tue, 7 Aug 2012 09:33:03 +0000 (-0500) Subject: Convert properly UTF-8 to UTF-16 X-Git-Tag: v3.7-rc1~72^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd3ba42c76d3d4b776120c2b24c1791e7bb3deb1;p=pandora-kernel.git 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 Acked-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed