From: Alan Stern Date: Mon, 27 Apr 2009 17:22:40 +0000 (-0400) Subject: USB: Gadget: fix UTF conversion in the usbstring library X-Git-Tag: v2.6.27.24~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=091fc4290d9d7c3bc56e0685f3b3baf8f80613f1;p=pandora-kernel.git USB: Gadget: fix UTF conversion in the usbstring library commit 0f43158caddcbb110916212ebe4e39993ae70864 upstream. This patch (as1234) fixes a bug in the UTF8 -> UTF-16 conversion routine in the gadget/usbstring library. In a UTF-8 multi-byte sequence, all bytes after the first should have their high-order two bits set to 10, not 11. Signed-off-by: Alan Stern Acked-by: David Brownell Signed-off-by: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed