|
Post by jhersant on May 27, 2009 7:42:29 GMT -5
I am having a really big problem with the latest (I guess) update of VCLZip (4.51). To be honest, I am not sure if this problem appeared exactly in 4.51 or before. I have just noticed it today, so this bug must have been introduced recently.
It appears that file and directory names (FullName, PathName and FileName) are different if you compile in Delphi 7 or in Delphi 2009 ... and that is really bad for me! In Delphi 7, only backslash "\" is used and it is ok. In Delphi 2009, it is a strange mix of slash "/" and backslash "\".
If I create a zip file containing a directory DIR, having a subdirectory SUBDIR, containing a file FILE.XML. Here is what I get, when I go through the file (call ReadZip and enumerate all entries):
* Delphi 2009: - 0: FullName="DIR\", PathName="DIR\", FileName="" - 1: FullName="DIR/SUBDIR\", PathName="DIR/SUBDIR\", FileName="" - 2: FullName="DIR/SUBDIR/FILE.XML", PathName="", FileName="DIR/SUBDIR/FILE.XML"
* Delphi 7: - 0: FullName="DIR\", PathName="DIR\", FileName="" - 1: FullName="DIR\SUBDIR\", PathName="DIR\SUBDIR\", FileName="" - 2: FullName="DIR\SUBDIR\FILE.XML", PathName="DIR\SUBDIR\", FileName="FILE.XML"
To me, it is a bug. Any idea/comment? Thanks.
Jérôme
P.S: I can send a small test application if you want Kevin.
|
|
|
Post by jhersant on May 27, 2009 8:03:30 GMT -5
#BREAKING NEWS# I have just found out that I had forgotten to apply the "VCLZipUpdates.zip". This solved my problem It brings me back to another thread I created recently "Regarding the latest updates...": I think it would be nice to make a new release 4.52, including all changes from 4.51 plus the content of VCLZipUpdates.zip. If it happens to me, it may very well happen for other users... Cheers, Jérôme
|
|