Re: CONFIG_NLS_DEFAULT

From: Urban Widmark (urban@svenskatest.se)
Date: Wed Jul 19 2000 - 07:15:49 EST


On Wed, 19 Jul 2000, Chris Wedgwood wrote:

> Looking at test5-pre3 I see the NLS stuff has been merged adding
> CONFIG_NLS_DEFAULT.
>
> The documentation doesn't explicitly say that this does NOT apply to
> ext2 and is generally only used for things like FAT -- should it?

Yes. It should probably either list the filesystems that use it or say
that it is limited to some filesystems. Suggested change below, or is that
still to fuzzy?

Some filesystems, like ncpfs and hopefully soon smbfs but also vfat,
really need 2 values since they may be mapping from one codepage to
another. Even if utf8 is defined as the right one for the linux side,
most fonts I have are iso8859-X ... and most people that I have gotten
emails from on this subject are mapping cp<->iso or cp<->cp.

It's currently done the same as it is in 2.2. But this would be more
complete:

CONFIG_NLS_REMOTE_DEFAULT
  - the charset/codepage from the source (disk, remote server)
CONFIG_NLS_LOCAL_DEFAULT
  - the "iocharset", for presenting the characters on the linux side.
    vfat uses CONFIG_NLS_DEFAULT as "iocharset" (and so does joliet in
    2.2, looks like that was missed from the 2.4 conversion). vfat
    requires a mount option to set the codepage it should use to access
    the disk.
    (why have a default at all if it's just for one of the values?)

Does anyone here have a reason why it is not 2 default values?
(Good time to ask, everyone is at OLS ... :)

One reason might be that nothing says that you are using the same remote
for your ncpfs mounts as you do for your vfat. But it's just a default
value ...

/Urban

--- linux-2.4.0-test5-pre3-orig/Documentation/Configure.help Wed Jul 19 13:47:53 2000
+++ linux/Documentation/Configure.help Wed Jul 19 13:46:40 2000
@@ -11299,8 +11299,8 @@
 
 nls default codepage
 CONFIG_NLS_DEFAULT
- The default NLS used when mounting filesystem. Currently, the valid
- values are:
+ The default NLS used when mounting some filesystems that use codepages,
+ like vfat. Currently, the valid values are:
   big5, cp437, cp737, cp775, cp850, cp852, cp855, cp857, cp860, cp861,
   cp862, cp863, cp864, cp865, cp866, cp869, cp874, cp932, cp936,
   cp949, cp950, euc-jp, euc-kr, gb2312, iso8859-1, iso8859-2, iso8859-3,

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



This archive was generated by hypermail 2b29 : Sun Jul 23 2000 - 21:00:12 EST