Unzip and OpenOffice ODT
Original Reporter info from Mantis: bonmario @bonmario
-
Reporter name: Mario Bonati
Original Reporter info from Mantis: bonmario @bonmario
- Reporter name: Mario Bonati
Description:
In "C:\Lazarus\fpc\2.0.4\source\packages\extra\unzip" there is the file unzip.pp that contains sources to extract files from zip files.
When i use it with files .zip i have no problem, but when i use it with files of OpenOffice (*.odt) i can't extract nothing.
I have tryed to debug it extracting the file "content.xml":
- The file is extracted and is correct
- The problem is in "FUNCTION unzipfile ( in_name : pchar;out_name : pchar;offset : longint;"
- At line 2422 of source "unzip.pp" there is "END ELSE IF ( originalcrc <> crc32val ) THEN BEGIN" it found that "originalcrc" is different from "crc32val" and at line 2424 "erase ( outfile );" delete "content.xml" that have been extracted before.
Mantis conversion info:
- Mantis ID: 7604
- OS: WinXp
- OS Build: SP2
- Platform: Win32
- Fixed in version: 3.0.0
- Fixed in revision: 15864 (#7119ebd5)
- Monitored by: » darius (Darius Blaszijk)