unzip missing code pages

Bug #1255640 reported by Ľubomír Mlích
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
unzip (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Bug 580961 was solved, but nobody created another bug to repair encoding as is described in comments bellow.

https://bugs.launchpad.net/ubuntu-jp-improvement/+bug/580961/comments/140
and
https://bugs.launchpad.net/ubuntu-jp-improvement/+bug/580961/comments/146

Testcase: Archive file with name encoded in CP-1250 and then unzip it. I have 12.04 and package unzip (6.0-4ubuntu2) installed.

I think revision will be better than waiting for people to ask for repairing their specific encoding.

Thanks.

description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unzip (Ubuntu):
status: New → Confirmed
Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

I'm using this script to work around the bug:
http://bazaar.launchpad.net/~ts.sch.gr/sch-scripts/trunk/view/head:/sch-scripts/unzip

Click on "Download file", then run
sudo mv unzip /usr/local/bin/unzip
sudo chmod +x /usr/local/bin/unzip

Then edit the file:
sudo gedit /usr/local/bin/unzip

Find the line that says:
    el) charset=cp737 ;;

...and either on top of it, or under it, add a similar line for your LANG <=> DOS codepage mapping.

Maybe when we have several mappings, someone will take the time to reimplement it inside unzip.c so that we don't have to use a wrapper anymore.

Revision history for this message
Ľubomír Mlích (hater-zlin) wrote :

Thanks, nice script.

My line looks like this:

    cs) charset=cp852;;

If You give me three more missing code pages, I'll try contact unzip maintainers and ask them for fix.

For help on codepages, look at: http://en.wikipedia.org/wiki/Code_page

summary: - unziping file with not utf-8 encoding error
+ unzip missing code pages
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers