From koffice-devel Tue Nov 19 21:28:31 2002 From: Nicolas Goutte Date: Tue, 19 Nov 2002 21:28:31 +0000 To: koffice-devel Subject: Re: Zip problems (Re: (no subject)) X-MARC-Message: https://marc.info/?l=koffice-devel&m=103774189920870 I suppose that the problem is over now. Look at the revision 1.20 of the = file=20 kdelibs/kio/kio/kzip.cpp. OpenOffice uses a variant of the ZIP format that KZip could not read. (Ho= wever=20 this variant is an official one and supported by PKUNZIP.) Have a nice day/evening/night! On Tuesday 19 November 2002 17:22, Holger Schroeder wrote: > Hi, > > could you mail me a .sxw file, which does not work for you? > then i will look into the problem. > > Holger > > On Thu, 14 Nov 2002, ismail donmez wrote: > > > Yeah I can reproduce it too, now, with a .sxw file. > > > The bug is in Holger Schr=F6der's last commit to > > > kzip.cpp (which was a rather > > > big change). I'm trying to debug it, but it's a bit > > > hard, without knowing the ZIP > > > file format at all. > > > > > > $ ./kziptest list /k/mytext.sxw > > > Read from offset : 0 > > > P > > > K > > > \x03 > > > \x04 > > > compressed file size=3D0 (looks wrong!) > > > filenamelength=3D11 (which is ok for > > > "contents.xml") > > > extra field length=3D0 > > > skip=3D11 > > > dev->at()=3D41 > > > offset=3D41 > > > Read from offset : 41 > > > \xad > > > V > > > \xdb > > > n > > > KZip: WARNING: Invalid ZIP file. Unrecognized header > > > at offset 41 > > > > > > I tried changing the offset where the compressed > > > file size is read, but I get 0 > > > in all cases.... > > > > > > But unzip manages to find the data.... > > > Length Method Size Ratio Date Time > > > CRC-32 Name > > > - -------- ------ ------- ----- ---- ---- > > > ------ ---- > > > 2593 Defl:N 895 66% 03-06-02 19:12 > > > 29e00009 content.xml > > > [...] > > > > > > Strange, I can't find 2593 nor 895 with khexedit > > > (??) > > > Holger - help! > > > > > > - -- > > > David FAURE, david@mandrakesoft.com, faure@kde.org > > > http://people.mandrakesoft.com/~david/ > > > Contributing to: http://www.konqueror.org/, > > > http://www.koffice.org/ > > > Get the latest KOffice - > > > http://download.kde.org/stable/koffice-1.2/ > > > -----BEGIN PGP SIGNATURE----- > > > Version: GnuPG v1.0.7 (GNU/Linux) > > > > Ok We found our guy :-) > > > > Nice work David btw let me thank all Koffice crew for > > the excellent software too :) > > > > =3D=3D=3D=3D=3D > > Microsoft Windows: made for the internet > > The Internet: made for UNIX > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Web Hosting - Let the expert host your site > > http://webhosting.yahoo.com > > _______________________________________________ > > koffice-devel mailing list > > koffice-devel@mail.kde.org > > http://mail.kde.org/mailman/listinfo/koffice-devel > > _______________________________________________ > koffice-devel mailing list > koffice-devel@mail.kde.org > http://mail.kde.org/mailman/listinfo/koffice-devel _______________________________________________ koffice-devel mailing list koffice-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/koffice-devel