Re: msdos filesystem ignores codepage argument?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Phillip Susi <psusi@xxxxxxxxxx> writes:

> I'm investigating a bug report about the msdos filesystem and the fact
> that it appears to ignore the codepage argument.  The user wants to
> use msdos instead of vfat to avoid adding long filenames to the fs and
> store the short filenames using code page 850.  I verified that when
> the on disk directory entry contains 0x8E, which is an umlouted A in
> cp850, but when mounting with mount -t msdos no matter what codepage I
> specify in -o, ls outputs the raw 0x8E rather than using the specified
> codepage to translate the on disk string to utf8.  The msdos
> filesystem refuses to accept the utf8 or iocharset options, so how do
> you get it to do correct translation using the specified codepage?

codepage option is to specify what codepage is used as on-disk encode in
FAT, not how convert to encoding to show. 

And msdos driver doesn't have the feature to encoding conversion between
on-disk and user (codepage is used only to upper/lower case conversion
basically).  IOW, msdos assumes the user and on-disk encodings are same.

> Also in the process I noticed some odd behavior of ls.  If I set my
> terminal to use cp850 and ls | cat, I see the umlouted A, but without
> piping the output through cat, it comes out as a question mark.  Why
> is that?

It is what "ls" does. Probably, following option will show raw string

	$ ls -N --show-control-chars

Thanks.
-- 
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux