http://bugzilla.novell.com/show_bug.cgi?id=540598
Summary: Encoding of cyrillic filenames in zip archive, created under Windows, is incorrect Classification: openSUSE Product: openSUSE 11.2 Version: Milestone 7 Platform: i686 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: pavel@argo-tours.ru QAContact: qa@suse.de Found By: ---
Created an attachment (id=319015) --> (http://bugzilla.novell.com/attachment.cgi?id=319015) An archive file with cyrillic file names included
User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.13) Gecko/2009080200 SUSE/3.0.13-0.1.2 Firefox/3.0.13
There are several discussions about the problem concerning cyrillic filenames in zip archives and unzip package. Unzip out-of-the-box (compiled from sources) does not choose filenames encoding correctly.
Developers from Ark say me, that the error is completely from info-zip project (https://bugs.kde.org/show_bug.cgi?id=204984).
There are sime patches to info-zip's unzip package, that makes unzip extract filenames with correct encoding. But maintainers of info-zip project rejected these patches (http://www.info-zip.org/board/board.pl?m-1248086794).
It would be nice to include this package in main openSuSE distribution.
Reproducible: Always
Steps to Reproduce: 1. Create zip-archive, containing files with cyrillic names under Windows. 2. Try to open it with unzip under SuSE Actual Results: Filename encoding is incorrect. Example:
pavel@pavel:~/tmp> unzip ReportPacket_DBV90821CJ.zip Archive: ReportPacket_DBV90821CJ.zip inflating: ����ի��� ����� (ꡡ�������).pdf inflating: ����ի��� ����� (����������).pdf
Expected Results: Results, produced with natspec patch from sisyphus
pavel@rzn-sepak-bpa:~/backup> pavel@rzn-sepak-bpa:~/temp> unzip ReportPacket_DBV90821CJ.zip Archive: ReportPacket_DBV90821CJ.zip inflating: Страховой полис (ИнноГарант).pdf inflating: Страховой полис (ИнгосСтрах).pdf
http://bugzilla.novell.com/show_bug.cgi?id=540598
zhu rensheng rszhu@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rszhu@novell.com AssignedTo|bnc-team-screening@forge.pr |pth@novell.com |ovo.novell.com |
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c
Philipp Thomas pth@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c1
--- Comment #1 from Dinar Valeev dvaleev@novell.com 2010-03-18 11:18:21 UTC --- We have found solution. But it requires additional libraries to convert file names on the fly.
The library is librcc especially created for handling non utf encoded file names.
How we can proceed then? RPM packages are built on OBS and tested. Should we create submit request?
The librcc and patched unzip are here: http://download.opensuse.org/repositories/home:/Lazy_Kent/openSUSE_11.2/
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c2
Philipp Thomas pth@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |msvec@novell.com
--- Comment #2 from Philipp Thomas pth@novell.com 2010-03-18 14:45:55 CET --- *** Bug 575715 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=575715
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c3
Alex Naumov anaumov@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |anaumov@novell.com
--- Comment #3 from Alex Naumov anaumov@novell.com 2010-04-01 14:20:43 UTC --- Submit request:
https://build.opensuse.org/stage/request/diff/34833
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c4
Stian Viskjer stian@viskjer.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stian@viskjer.net
--- Comment #4 from Stian Viskjer stian@viskjer.net 2010-04-07 12:27:17 UTC --- This is also a problem with the letters 'æ ø å' used in some of the Scandinavian alphabets.
It's also an issue for tar's created by 7zip on Windows.
Unzip 6.0 and the packages from home:/Lazy_Kent/openSUSE_11.2/ mentioned in comment 1 doesn't change anything on my system. (11.2 x86_64)
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c5
--- Comment #5 from Kyrill Detinov lazy.kent.suse@gmail.com 2010-05-03 21:28:57 MSD --- I made a submit request to Factory: https://build.opensuse.org/request/diff/39326
Confirmed, it works at least with Russian, Czech and Slovak. http://lizards.opensuse.org/2010/04/07/call-for-testing-unzip-feature/
% LANG=cs_CZ.utf8 unzip -l test-cz.zip Archive: test-cz.zip Length Date Time Name -------- ---- ---- ---- 117 03-18-10 15:24 aábcčdďeéěfghchiíjklmnňoópqrřsštťuúůvwxyýzžAÁBCČDĎEÉĚFGHCHIÍJKLMNŇOÓPQRŘSŠTŤUÚŮVWXYÝZŽ.txt -------- ------- 117 1 file
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c6
Philipp Thomas pth@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WONTFIX
--- Comment #6 from Philipp Thomas pth@novell.com 2010-05-04 19:25:46 CEST --- I won't accept the patch for openSUSE because upstream doesn't accept it and openSUSE would have to maintain this patch indefinitely. If this or a similiar patch gets accepted upstream I'll help in backporting it.
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c7
Ilya Chernykh neptunia@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |neptunia@mail.ru
--- Comment #7 from Ilya Chernykh neptunia@mail.ru 2010-05-04 17:38:04 UTC --- What about changing the file to Sisyphus' patched version? If openSUSe cannot maintain it, let's Alt Linux team do the maintenance and regard them as upstream of a forked version?
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c8
--- Comment #8 from Ilya Chernykh neptunia@mail.ru 2010-05-04 17:41:08 UTC --- Well it is really annoying: nobody can open archives made under Windows. People of business say Linux is buggy: it even cannot open archives properly. The same say government officials.
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c
Philipp Thomas pth@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c9
Dinar Valeev dvaleev@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|WONTFIX |
--- Comment #9 from Dinar Valeev dvaleev@novell.com 2010-05-09 23:25:33 UTC --- @Philipp Chances to push this patch to upstream is very small or even not possible at all. Other distributions tried to accomplish that without success.
The upstream statement is: The trend in IT is to use UTF8. That's why patch is not accepted.
Then why we can't accept this patch as openSUSE specific to close such annoying bug? And maintain it until good time comes. openSUSE maintain a numbers of specific patches for rpm, OpenOffice.org
If you won't maintain patch, please let community to do it. The patch is small. It introduces new header and changes few strings of main code.
We tested patched unzip for two-three months and it just works. Also we got positive feedback on Czech and Slovak in addition to Russian language. It also pretty applicable on latest 6.0 unzip version.
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c10
Philipp Thomas pth@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO Version|Milestone 7 |Final InfoProvider| |lazy.kent.suse@gmail.com AssignedTo|pth@novell.com |bnc-team-screening@forge.pr | |ovo.novell.com Target Milestone|--- |Final
--- Comment #10 from Philipp Thomas pth@novell.com 2010-05-10 19:29:43 CEST --- OK, after thinking about this I have added the patch to our unzip and will keep it at least as long as the package builds and the patch doesn't need extra work. Kyrilk, would you be willing to act as co-maintainer? Or to ask more more broadly, would anyone of you be willing to comaintain zip/unzip? I'll also try to get an update for 11.2 out of the door.
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c11
Kyrill Detinov lazy.kent.suse@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|lazy.kent.suse@gmail.com |
--- Comment #11 from Kyrill Detinov lazy.kent.suse@gmail.com 2010-05-10 22:13:48 MSD --- Philipp, I made sr#39767.
At the moment we have librcc0 in Factory only. So we may build patched unzip against Factory. I added %if 0%{?suse_version} > 1120 for all the chahges.
would you be willing to act as co-maintainer?
Yes, I'd like to take this role.
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c
Dinar Valeev dvaleev@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |maintenance@opensuse.org
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c12
Marcus Meissner meissner@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |meissner@novell.com
--- Comment #12 from Marcus Meissner meissner@novell.com 2010-05-20 15:24:26 UTC --- do we really want to take 2 new libraries for 11.2? not sure.
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c13
--- Comment #13 from Bruno Friedmann bruno@ioda-net.ch 2010-05-20 16:46:27 UTC --- In reply to C12 More & more customers are having incoming zip from differents encodings and it's really a pain to explain, oh this zip should be unzip under window to get the right encoding. We look like charlot.
So as 11.2 as a long life in front of it, yes I'm voting for having it include as fast as possible. The bug start under 11.2, so I feel it's better to close it on 11.2, and be sure it was integrated in 11.3
Or (I'm only seeing ma world part :-) ) there's a much complicated implication, if so it should be explain.
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c14
Christian Dengler cdengler@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cdengler@novell.com
--- Comment #14 from Christian Dengler cdengler@novell.com 2010-05-25 13:43:06 UTC --- I'm not happy about adding two new libraries to a released product, but in this case I think it should be fine if someone will maintain them. (+1)
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c15
--- Comment #15 from Marcus Meissner meissner@novell.com 2010-05-25 13:49:35 UTC --- so lets do it. :)
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c16
Swamp Workflow Management swamp@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:running:33540:low
--- Comment #16 from Swamp Workflow Management swamp@suse.com 2010-05-25 13:56:21 UTC --- The SWAMPID for this issue is 33540. This issue was rated as low. Please submit fixed packages as soon as possible. Also create a patchinfo file using this link: https://swamp.suse.de/webswamp/wf/33540
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c17
Christian Dengler cdengler@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|maintenance@opensuse.org |
--- Comment #17 from Christian Dengler cdengler@novell.com 2010-05-25 14:00:53 UTC --- Update process started ... be so kind and submit fixed sources and a patchinfo.
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c18
Philipp Thomas pth@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pth@novell.com
--- Comment #18 from Philipp Thomas pth@novell.com 2010-05-26 11:24:54 CEST --- @Marcus: which is the second new library? unzip only needs librcc0.
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c19
--- Comment #19 from Marcus Meissner meissner@novell.com 2010-05-26 09:27:04 UTC --- librcc however requires librcd
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c20
Swamp Workflow Management swamp@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:33540:low |maint:running:33540:low | |maint:released:11.2:33674
--- Comment #20 from Swamp Workflow Management swamp@suse.com 2010-06-17 12:22:32 UTC --- Update released for: librcc-devel, librcc0, librcc0-debuginfo, librcc0-debugsource, librcd-devel, librcd0, librcd0-debuginfo, librcd0-debugsource, rcc-runtime, rcc-runtime-debuginfo, unzip, unzip-debuginfo, unzip-debugsource Products: openSUSE 11.2 (debug, i586, x86_64)
http://bugzilla.novell.com/show_bug.cgi?id=540598
http://bugzilla.novell.com/show_bug.cgi?id=540598#c21
Christian Dengler cdengler@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |CLOSED Resolution| |FIXED
--- Comment #21 from Christian Dengler cdengler@novell.com 2010-06-17 12:24:15 UTC --- Update released after a long testing phase in the test update channel.
Closing.
https://bugzilla.novell.com/show_bug.cgi?id=540598
https://bugzilla.novell.com/show_bug.cgi?id=540598#c22
Ilya Chernykh neptunia@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Component|Basesystem |Basesystem Resolution|FIXED | Product|openSUSE 11.2 |openSUSE 11.3
--- Comment #22 from Ilya Chernykh neptunia@mail.ru 2010-09-22 19:37:56 UTC --- Still does not work in File Roller under OpenSUSE 11.3.
https://bugzilla.novell.com/show_bug.cgi?id=540598
https://bugzilla.novell.com/show_bug.cgi?id=540598#c23
--- Comment #23 from Ilya Chernykh neptunia@mail.ru 2010-09-22 19:39:57 UTC --- Created an attachment (id=391041) --> (http://bugzilla.novell.com/attachment.cgi?id=391041) file with problem
https://bugzilla.novell.com/show_bug.cgi?id=540598
https://bugzilla.novell.com/show_bug.cgi?id=540598#c24
--- Comment #24 from Ilya Chernykh neptunia@mail.ru 2010-09-22 19:40:25 UTC --- Created an attachment (id=391042) --> (http://bugzilla.novell.com/attachment.cgi?id=391042) screenshot of file roller
https://bugzilla.novell.com/show_bug.cgi?id=540598
https://bugzilla.novell.com/show_bug.cgi?id=540598#c25
--- Comment #25 from Ilya Chernykh neptunia@mail.ru 2010-09-22 19:40:53 UTC --- The same file (bug.zip) opens well with Ark from KDE3.
https://bugzilla.novell.com/show_bug.cgi?id=540598
https://bugzilla.novell.com/show_bug.cgi?id=540598#c26
--- Comment #26 from Ilya Chernykh neptunia@mail.ru 2010-09-22 19:42:18 UTC --- Created an attachment (id=391043) --> (http://bugzilla.novell.com/attachment.cgi?id=391043) the same file opened in Ark/KDE3
https://bugzilla.novell.com/show_bug.cgi?id=540598
https://bugzilla.novell.com/show_bug.cgi?id=540598#c27
Kyrill Detinov lazy.kent.suse@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |CLOSED Resolution| |FIXED
--- Comment #27 from Kyrill Detinov lazy.kent.suse@gmail.com 2010-09-23 08:10:46 MSD --- Works OK.
% unzip -l bug-540598_bug.zip Archive: bug-540598_bug.zip Length Date Time Name -------- ---- ---- ---- 72704 09-20-10 23:11 Коммерческое предложение..doc 388608 09-20-10 23:11 прайс на палатки и снаряжение14.09.2010.xls -------- ------- 461312 2 files
Open a bug against File Roller. No problem with unzip.
https://bugzilla.novell.com/show_bug.cgi?id=540598
https://bugzilla.novell.com/show_bug.cgi?id=540598#c28
--- Comment #28 from Ilya Chernykh neptunia@mail.ru 2010-09-23 04:38:51 UTC --- Does File Roller use unzip in this case?
https://bugzilla.novell.com/show_bug.cgi?id=540598
https://bugzilla.novell.com/show_bug.cgi?id=540598#c29
--- Comment #29 from Kyrill Detinov lazy.kent.suse@gmail.com 2010-09-23 18:36:25 MSD --- It should use unzip. But I found an interesting bugreport: https://bugzilla.gnome.org/show_bug.cgi?id=611257
https://bugzilla.novell.com/show_bug.cgi?id=540598
https://bugzilla.novell.com/show_bug.cgi?id=540598#c30
--- Comment #30 from Ilya Chernykh neptunia@mail.ru 2010-09-23 15:03:16 UTC --- Удалил p7zip. Теперь в File Roller все нормально, но встроенный просмотрщик архивов в КДЕ3 все равно показывает мусор (в Ark все нормально).
https://bugzilla.novell.com/show_bug.cgi?id=540598
https://bugzilla.novell.com/show_bug.cgi?id=540598#c31
--- Comment #31 from Ilya Chernykh neptunia@mail.ru 2010-09-23 15:05:08 UTC --- Removed p7zip. Now all OK in File Roller, but embeeded viewer in KDE3 still shows garbage (in Ark all OK).
https://bugzilla.novell.com/show_bug.cgi?id=540598
https://bugzilla.novell.com/show_bug.cgi?id=540598#c32
--- Comment #32 from Ilya Chernykh neptunia@mail.ru 2010-09-23 15:05:32 UTC --- Created an attachment (id=391237) --> (http://bugzilla.novell.com/attachment.cgi?id=391237) what I see in embeeded viewer
https://bugzilla.novell.com/show_bug.cgi?id=540598
https://bugzilla.novell.com/show_bug.cgi?id=540598#c33
--- Comment #33 from Kyrill Detinov lazy.kent.suse@gmail.com 2010-09-23 20:43:58 MSD --- Same here. Krusader 1.90.0 shows file names correctly. As you know, nobody interested to fix KDE3 bugs.
https://bugzilla.novell.com/show_bug.cgi?id=540598
https://bugzilla.novell.com/show_bug.cgi?id=540598#c34
--- Comment #34 from Ilya Chernykh neptunia@mail.ru 2010-09-23 17:36:49 UTC --- Maybe this bug is fixed in Trinity. If not, it is possible to make a bugreport.
http://bugzilla.novell.com/show_bug.cgi?id=540598 http://bugzilla.novell.com/show_bug.cgi?id=540598#c35
--- Comment #35 from Bernhard Wiedemann bwiedemann@suse.com --- This is an autogenerated message for OBS integration: This bug (540598) was mentioned in https://build.opensuse.org/request/show/39794 Factory / unzip https://build.opensuse.org/request/show/40783 11.2 / librcd0 https://build.opensuse.org/request/show/40784 11.2 / librcc0 https://build.opensuse.org/request/show/40785 11.2 / unzip https://build.opensuse.org/request/show/40799 11.2:Test / unzip