public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
From: Phillip Susi <psusi@ubuntu.com>
To: hirofumi@mail.parknet.co.jp
Cc: linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: msdos filesystem ignores codepage argument?
Date: Fri, 26 Dec 2014 17:50:10 -0500	[thread overview]
Message-ID: <549DE622.6050504@ubuntu.com> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

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?

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?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCgAGBQJUneYfAAoJENRVrw2cjl5RpOYH/3MsR7aeuJAKcAyIzo57k397
Ef9wAD37FxJ/CzQ8o+ZtlN4wMY2sYx6gbZBK5lfi2T6NfzJ/7k6zhG9Kxr+4zZyS
m/Zuq2NHN5dSANhaUqJNtRDHA1/kTHZHvC/oZ+Kpoogr1tOAslayuYz1L24Kz/FB
m3p6eXbRJBW1wJ2tqW3F45Wbw0oB9K7mBRGzTRedwVTSzNdGJdl2Dy+ru74r8yu2
5i4m7wmuwNZ7WtCd1Rs3B81wDwK0Uz8TPZL2W7lp15MHl1Bi8l9NsClYVcrXALLs
RacNE57laNu16ijTtJxgz7DBttZTQZRplCCB2pRLxr01Iv09TtJr/x+k8z3hYvA=
=O/ao
-----END PGP SIGNATURE-----

             reply	other threads:[~2014-12-26 22:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-26 22:50 Phillip Susi [this message]
2014-12-28 17:00 ` msdos filesystem ignores codepage argument? OGAWA Hirofumi
2014-12-28 22:13   ` Phillip Susi
2014-12-28 23:06     ` OGAWA Hirofumi
2014-12-29  0:51       ` Phillip Susi
2014-12-29  1:00         ` OGAWA Hirofumi

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=549DE622.6050504@ubuntu.com \
    --to=psusi@ubuntu.com \
    --cc=hirofumi@mail.parknet.co.jp \
    --cc=linux-fsdevel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox