Bug 575715

Summary: unzip decrypts zip files from windows incorrectly
Product: [openSUSE] openSUSE 11.2 Reporter: Michal Svec <msvec>
Component: BasesystemAssignee: Philipp Thomas <pth>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P3 - Medium CC: dvaleev, lazy.kent
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: example zip file

Description Michal Svec 2010-02-01 14:19:38 UTC
Created attachment 339943 [details]
example zip file

ZIP files created under windows have broken encoding resulting in
the decrypted files being impossible to open at all if they contain
non-ascii characters (see the attached example zip file).

Last release (April 2009) of unzip 6.0 contains quite some fixes
regarding this, but I can't still get it to work.

Just for reference, updated versions of unzip and zip 3.0:
https://build.opensuse.org/project/show?project=home:msvec:branches:Archiving
Comment 1 Kyrill Detinov 2010-03-14 20:33:05 UTC
Please test patched unzip from home:Lazy_Kent repository. You also need to install librcd0, librcc0 and rcc-runtime.

It works for me:

23:27 kent@lazy ~/download % unzip -l test.zip                                    
Archive:  test.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
       17  03-10-10 22:09   проверка текста.txt
 --------                   -------
       17                   1 file
23:28 kent@lazy ~/download % LANG=cs_CZ.utf8
23:28 kent@lazy ~/download % unzip -l attachment.zip 
Archive:  attachment.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
       22  01-21-10 00:16   příliš žluťoučký kůň.mně
 --------                   -------
       22                   1 file
Comment 2 Michal Svec 2010-03-15 10:32:39 UTC
Looks much better! The only thing I spotted which did not unzip properly
was 'Ů' in the file name (will try to create a testing file for that too).
Comment 3 Philipp Thomas 2010-03-18 13:45:54 UTC
Marking as duplicate

*** This bug has been marked as a duplicate of bug 540598 ***