From: JPT <j-p-t@gmx.net>
To: util-linux@vger.kernel.org
Subject: [BUG] Mount: codepage mapping does not work for msdos fs
Date: Mon, 29 Dec 2014 13:48:23 +0100 [thread overview]
Message-ID: <m7riin$iuv$1@ger.gmane.org> (raw)
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
next reply other threads:[~2014-12-29 12:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-29 12:48 JPT [this message]
2015-01-05 22:25 ` [BUG] Mount: codepage mapping does not work for msdos fs Phillip Susi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='m7riin$iuv$1@ger.gmane.org' \
--to=j-p-t@gmx.net \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.