Skip to contentSkip to conversation

Fix the utf8 option of vfat (2/4)

PATCH New OGAWA Hirofumi 1 participant 1 message May 25, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix the utf8 option of vfat (2/4)

This patch fixes the bug which happens when utf8 option was used, by using iocharset for upper/lower conversion.

It's a bit strange that utf8 use iocharset, but this is still needed.

Please apply.

Signature · 15 lines
OGAWA Hirofumi <[email protected]>

diff -urN fat_dentry-2.5.18/fs/fat/inode.c fat_utf8_oops-2.5.18/fs/fat/inode.c
--- fat_dentry-2.5.18/fs/fat/inode.c	Sat May 25 16:52:06 2002
+++ fat_utf8_oops-2.5.18/fs/fat/inode.c	Sat May 25 17:14:49 2002
@@ -872,7 +872,8 @@
 	if (!silent)
 		printk("FAT: Using codepage %s\n", sbi->nls_disk->charset);
 
-	if (sbi->options.isvfat && !sbi->options.utf8) {
+	/* FIXME: utf8 is using iocharset for upper/lower conversion */
+	if (sbi->options.isvfat) {
 		if (sbi->options.iocharset != NULL) {
 			sbi->nls_io = load_nls(sbi->options.iocharset);
 			if (!sbi->nls_io) {