utf8 filenames in jar files are not displayed correctly in vfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mc (Ubuntu) |
New
|
Undecided
|
Unassigned |
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.
In fact, jar files *are* zip files. It seems to me that it's a bug in zip.