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:39:00 +0900 |
| commit | a71d78897ad4b0df7239269f5772bd059a0a2541 (patch) | |
| tree | 760267abd8613eb8d0e137faa2737bd9798fbdb9 /fs/binfmt_elf.c | |
| parent | 84b7167f1ab14715edb851b17c011d645dbdd312 (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 'fs/binfmt_elf.c')
0 files changed, 0 insertions, 0 deletions
