Commit f1c83c72 authored by Hirofumi Ogawa's avatar Hirofumi Ogawa Committed by Linus Torvalds

[PATCH] Fix the utf8 option of vfat (again)

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.
parent c5d61c03
...@@ -872,7 +872,8 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, ...@@ -872,7 +872,8 @@ int fat_fill_super(struct super_block *sb, void *data, int silent,
if (!silent) if (!silent)
printk("FAT: Using codepage %s\n", sbi->nls_disk->charset); 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) { if (sbi->options.iocharset != NULL) {
sbi->nls_io = load_nls(sbi->options.iocharset); sbi->nls_io = load_nls(sbi->options.iocharset);
if (!sbi->nls_io) { if (!sbi->nls_io) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment