lkml.org 
[lkml]   [2007]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Sanitize filesystem NLS handling
I wrote:

> More details on what the patch does:
>
> * Rewords the description of CONFIG_NLS_DEFAULT, because at some point
> in the past it confused some people
> * Removes CONFIG_FAT_DEFAULT_IOCHARSET, now CONFIG_NLS_DEFAULT is used
> for this purpose. This is because the correct setting of both must match
> the user's locale
> * Merges the two CONFIG_SMB_NLS_REMOTE and CONFIG_FAT_DEFAULT_CODEPAGE
> options into one, named CONFIG_CODEPAGE_DEFAULT. This is because the
> correct setting of both must match the code page used by MS-DOS in the
> user's country. For the same reason, CONFIG_SMB_NLS_DEFAULT is removed
> (the only sane choice is "y")
> * Makes the FAT filesystem accept both the old-style "codepage=866"
> mount option (which is inconsistent with other filesystems requiring a
> codepage option) and the new-style "codepage=cp866" option. This is
> necessary because CONFIG_CODEPAGE_DEFAULT must work for all filesystems
> that use it
> * Downgrades the UTF-8 FAT warning to a note, because, while using the
> utf8 iocharset produces a case-sensitive FAT filesystem, other
> iocharsets simply produce wrong characters, which is much worse
> * Renames SMB_NLS_MAXNAMELEN to NLS_MAXNAMELEN, because it is also
> useful outside smbfs
> * Makes smbfs always output iocharset and codepage in /proc/mounts, as
> FAT does
> * Makes CONFIG_NLS_DEFAULT and CONFIG_CODEPAGE_DEFAULT adjustable at
> runtime via the following mechanisms:

I take the patch back, please expect V2. It needs some work WRT hfs and
ncpfs filesystems, as well as an improvement in handling of iocharset=utf8
in the fat filesystem.

--
Alexander E. Patrakov
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-03-22 17:09    [W:0.103 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site