[fpc-pascal] TZipper from FPC 2.2.2

Michael Van Canneyt michael at freepascal.org
Sat Jan 31 23:32:30 CET 2009



On Sat, 31 Jan 2009, Felipe Monteiro de Carvalho wrote:

> Hello,
> 
> While I wait for FPC 2.4, which brings a much better TZipper, I am
> trying to use the existing TZipper to create a zip file with the
> following structure:
> 
> file1
> file2
> directory/file3
> 
> The problem is that it seams that the TZipper from FPC 2.2.2 will
> always create a base directory in the archive, is that it? Like, if
> the target file is called myfile.zip it will create the archive as:
> 
> myfile/file1
> myfile/file2
> myfile/directory/file3
> 
> The base directory makes the OpenDocument become corrupted in the eyes
> of OpenOffice.
> 
> And I can't use FPC 2.3.1 because users of my library may have 2.2.2
> installed ...
> 
> Any ideas if it's possible to avoid the base directory with the current TZipper?

No, it's probably definitely a bug...

> Another cool possibility would be having this change merged. Any
> chance? I can help testing 2.2.3

This will not be before 2.2.4. RC1 is already on the FTP server.
Only fixes related to the RC will be merged. After the official
release, the fix may get merged. 

Although 2.2.4 is probably the last 2.2 release.

Michael.



More information about the fpc-pascal mailing list