1
linux/fs/fat
Alan Stern 0720a06a75 NLS: improve UTF8 -> UTF16 string conversion routine
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@suse.de>
2011-11-18 10:51:01 -08:00
..
cache.c fat: Fix possible null deref in fat_cache_add() 2011-04-12 21:12:16 +09:00
dir.c fat: follow rename pack_hex_byte() to hex_byte_pack() 2011-10-31 17:30:57 -07:00
fat.h treewide: use __printf not __attribute__((format(printf,...))) 2011-10-31 17:30:54 -07:00
fatent.c fat: Replace all printk with fat_msg() 2011-04-12 21:12:42 +09:00
file.c fs: push i_mutex and filemap_write_and_wait down into ->fsync() handlers 2011-07-20 20:47:59 -04:00
inode.c filesystems: add set_nlink() 2011-11-02 12:53:43 +01:00
Kconfig
Makefile
misc.c fat: Replace all printk with fat_msg() 2011-04-12 21:12:42 +09:00
namei_msdos.c filesystems: add set_nlink() 2011-11-02 12:53:43 +01:00
namei_vfat.c NLS: improve UTF8 -> UTF16 string conversion routine 2011-11-18 10:51:01 -08:00