linux/include
Alan Stern 71ddb98dfa NLS: improve UTF8 -> UTF16 string conversion routine
commit 0720a06a75 upstream.

The utf8s_to_utf16s conversion routine needs to be improved.  Unlike
its utf16s_to_utf8s sibling, it doesn't accept arguments specifying
the maximum length of the output buffer or the endianness of its
16-bit output.

This patch (as1501) adds the two missing arguments, and adjusts the
only two places in the kernel where the function is called.  A
follow-on patch will add a third caller that does utilize the new
capabilities.

The two conversion routines are still annoyingly inconsistent in the
way they handle invalid byte combinations.  But that's a subject for a
different patch.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-07-19 09:49:57 +08:00
..
acpi ACPI: Store SRAT table revision 2012-01-25 17:24:57 -08:00
asm-generic Merge remote-tracking branch 'stable/linux-3.0.y' into develop-3.0 2013-01-15 12:45:19 +08:00
crypto
drm drm/radeon/kms: add new BTC PCI ids 2012-06-10 00:33:04 +09:00
keys Revert "Merge remote-tracking branch 'linux-2.6.32.y/master' into develop" 2011-07-30 16:09:59 +08:00
linux NLS: improve UTF8 -> UTF16 string conversion routine 2013-07-19 09:49:57 +08:00
math-emu Revert "Merge remote branch 'linux-2.6.32.y/master' into develop" 2011-07-30 16:24:52 +08:00
media camera(v0.4.1): cif:v0.4.1 generic_sensor:v0.1.0 rk_camera:v0.1.0 2013-04-10 16:27:20 +08:00
mtd
net Merge remote-tracking branch 'stable/linux-3.0.y' into develop-3.0 2013-01-21 17:21:19 +08:00
pcmcia
rdma
rxrpc
scsi Revert "Merge commit 'v2.6.32.9' into android-2.6.32" 2011-07-30 22:24:29 +08:00
sound Merge remote-tracking branch 'stable/linux-3.0.y' into develop-3.0 2012-12-01 12:07:55 +08:00
target target: Set additional sense length field in sense data 2012-01-25 17:25:00 -08:00
trace sync: add tracepoint support 2013-02-22 17:47:18 +08:00
video OMAPDSS: HDMI: PHY burnout fix 2012-03-12 10:32:59 -07:00
xen xen/xenbus: Reject replies with payload > XENSTORE_PAYLOAD_MAX. 2012-01-25 17:24:41 -08:00
Kbuild