[Pkg-mc-devel] [Bug 706455] [NEW] utf8 filenames in jar files are not displayed correctly in vfs

Gavriel 706455 at bugs.launchpad.net
Sun Jan 23 01:18:46 UTC 2011


Public bug reported:

Binary package hint: mc

Ubuntu 10.10
GNU Midnight Commander package version: 3:4.7.0.6-1

Expected: to see the utf8 filenames inside a jar file when entering to the jar file (F3, Enter) - testéá.txt
Happened: saw wrong filenames - test+?+?.txt

To reproduce:
- create a file with non-ascii letters in filename:
touch "testéá.txt"
- add the created file to a jar file:
jar -c -M "testéá.txt" > test.jar
- view the utf8 filenames corretly reported by jar:
jar -t < test.jar

but entering into test.jar with mc (enter, F3) will show incorrect filename:
test+?+?.txt

note: other file formats (for example tar) show corret utf8 filenames

the problem seems to be that mc recognizes jar files as zip files, and
opens them with unzip instead of jar. Jar files have utf8 filenames,
while zip files have cp437 charset.

** Affects: mc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Debian MC
Packaging Group, which is subscribed to mc in ubuntu.
https://bugs.launchpad.net/bugs/706455

Title:
  utf8 filenames in jar files are not displayed correctly in vfs

Status in “mc” package in Ubuntu:
  New

Bug description:
  Binary package hint: mc

  Ubuntu 10.10
  GNU Midnight Commander package version: 3:4.7.0.6-1

  Expected: to see the utf8 filenames inside a jar file when entering to the jar file (F3, Enter) - testéá.txt
  Happened: saw wrong filenames - test+?+?.txt

  To reproduce:
  - create a file with non-ascii letters in filename:
  touch "testéá.txt"
  - add the created file to a jar file:
  jar -c -M "testéá.txt" > test.jar
  - view the utf8 filenames corretly reported by jar:
  jar -t < test.jar

  but entering into test.jar with mc (enter, F3) will show incorrect filename:
  test+?+?.txt

  note: other file formats (for example tar) show corret utf8 filenames

  the problem seems to be that mc recognizes jar files as zip files, and
  opens them with unzip instead of jar. Jar files have utf8 filenames,
  while zip files have cp437 charset.





More information about the Pkg-mc-devel mailing list