util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] Mount: codepage mapping does not work for msdos fs
@ 2014-12-29 12:48 JPT
  2015-01-05 22:25 ` Phillip Susi
  0 siblings, 1 reply; 2+ messages in thread
From: JPT @ 2014-12-29 12:48 UTC (permalink / raw)
  To: util-linux

Hi,

I want to mount a DOS 5.0 partition without messing it up with LFNs.

According to man page this only works if I use the MSDOS fs instead of VFAT.

But using MSDOS fails on converting non ASCII chars.

If I mount using VFAT:
mount -t vfat -o check=strict,codepage=850,iocharset=iso8859-1,utf8
everything is fine:
ÄÄÄÄÄÄÄÄÄÄ AßLAR ÄÜÖßÄÜÖ istdaskürzer nochlänger
ABC ÄÜÖÄÜÖ äüößÄÜÖ2 longfilename öööööööööö

If I mount using MSDOS:
mount -t msdos -o check=strict,codepage=850
the chars aren't translated at all:
ls shows garbage:
?????? ????? ??????~1 ??????~1 ?????2 abc a?lar istdas~1 longfi~1 nochl?~1

if piped through less, you can see it delivers cp850 codes:

<8E><9A><99><8E><9A><99>
<8E><9A><99><U+139A><99>
<99><99><99><99><99><99>~1
<8E><8E><8E><8E><8E><8E>~1
<8E><9A><99><U+139A><99>2
abc
a<E1>lar
istdas~1
longfi~1
nochl<8E>~1

write access creates UTF8 codes on the disk (I believe, not verified)

Could you please have a look into it?

Linux TUX 3.16.0-28-generic #38-Ubuntu SMP Fri Dec 12 17:37:40 UTC 2014
x86_64
mount from util-linux 2.25.1 (libmount 2.25.0: selinux, assert, debug)

thanks

Jan


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] Mount: codepage mapping does not work for msdos fs
  2014-12-29 12:48 [BUG] Mount: codepage mapping does not work for msdos fs JPT
@ 2015-01-05 22:25 ` Phillip Susi
  0 siblings, 0 replies; 2+ messages in thread
From: Phillip Susi @ 2015-01-05 22:25 UTC (permalink / raw)
  To: JPT, util-linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/29/2014 7:48 AM, JPT wrote:
> Hi,
> 
> I want to mount a DOS 5.0 partition without messing it up with
> LFNs.
> 
> According to man page this only works if I use the MSDOS fs instead
> of VFAT.
> 
> But using MSDOS fails on converting non ASCII chars.

This doesn't really have anything to do with util-linux; the kernel
msdos driver simply lacks the ability to use the iocharset option.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iQEcBAEBAgAGBQJUqw9cAAoJENRVrw2cjl5RDukH/00LPDgvnNNL1PownJTGJxwv
948PxDwypSRO1pJO1yoh5ldc8jfJ9vNZCpv/cbbJ5y6P/uro4+aLQcCRNLbhPHRZ
OEKnlatYbHJcG09rDwJj8K7sDch87hWGmCKytyCuBixq5aPZc47dYQ2sqgScqCJG
R3ZQmiFZQLyV+I98SJEhh0w3Ur8a5oMlI3d3qj/y0ZUuMsbHr1bFTo5P+0y2kISW
wXnASUOI6C1x71LYpWnitNZzO8lc+9Gnx3DVUE2PrxioJmeUohFI16I49Wr5NGb/
edUzk7S06QfVWZgvIhm/BK3VMjRUt6qYZ4sH0mm79fgQSKydRNNKqW569lA4u6o=
=aH4e
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-05 22:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-29 12:48 [BUG] Mount: codepage mapping does not work for msdos fs JPT
2015-01-05 22:25 ` Phillip Susi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).