]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix the utf8 option of vfat (again)
authorHirofumi Ogawa <hirofumi@mail.parknet.co.jp>
Wed, 29 May 2002 01:48:27 +0000 (18:48 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Wed, 29 May 2002 01:48:27 +0000 (18:48 -0700)
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.

fs/fat/inode.c

index 29e650b39597f336cdff92781786a4cc14241f0c..69ca844884b63bcd194f8d9f9a00c918bc337a2e 100644 (file)
@@ -872,7 +872,8 @@ int fat_fill_super(struct super_block *sb, void *data, int silent,
        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) {