← Back to team overview

touch-packages team mailing list archive

[Bug 1405684] [NEW] mount: codepage mapping does not work for msdos fs

 

Public bug reported:

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

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

But using MSDOS fails converting non ASCII chars.

If I mount this way:
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 the 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

thanks

** Affects: util-linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: codepage fat mount msdos

** Description changed:

  I want to mount a DOS 5.0 partions without messing it up with LFNs.
  
  According to docs this only works if I use the MSDOS fs instead of VFAT.
  
- But using MSDOS fails with converting non ASCII chars.
+ But using MSDOS fails converting non ASCII chars.
  
- If I mount this way: 
+ If I mount this way:
  mount -t vfat  -o check=strict,codepage=850,iocharset=iso8859-1,utf8
- everything is fine: 
+ 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: 
+ 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 the 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
  
  thanks

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1405684

Title:
  mount: codepage mapping does not work for msdos fs

Status in util-linux package in Ubuntu:
  New

Bug description:
  I want to mount a DOS 5.0 partions without messing it up with LFNs.

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

  But using MSDOS fails converting non ASCII chars.

  If I mount this way:
  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 the 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

  thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1405684/+subscriptions


Follow ups

References