Comment 4 for bug 1255640

Revision history for this message
Dominik Viererbe (dviererbe) wrote :

> Testcase: Archive file with name encoded in CP-1250 and then unzip it. I have 12.04 and package unzip (6.0-4ubuntu2) installed.
Thank you for reporting this bug.

Ubuntu 12.04 (precise) reached end-of-life on April 28, 2017.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

I tetsted on 22.04 (Jammy Jellyfish) if the bug still exists, but it seems to be fixed at some point.

Testcase:
1. create test file:
echo "Hello World!" > '~€…†‡‰Š‹ŚŤŽŹ•–—™š›śťžźNPˇ˘Ł¤Ą¦§¨©Ş«¬®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙.txt'
2. force filename encoding:
convmv -f utf8 -t cp1250 '~€…†‡‰Š‹ŚŤŽŹ•–—™š›śťžźNPˇ˘Ł¤Ą¦§¨©Ş«¬®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙.txt'
3. create zip file:
zip test.zip '~€…†‡‰Š‹ŚŤŽŹ•–—™š›śťžźNPˇ˘Ł¤Ą¦§¨©Ş«¬®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙.txt'
4. unzip file:
unzip -d extracted test.zip
5. check if there are decoding errors:
ls -la extracted/

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in.