wxZipFSHandler problem in 2.8 RC1

Anumeet Singh anumeet.singh at gmail.com
Tue Dec 5 13:16:25 PST 2006


Hi,
I use the wxFileSystem with a wxZipFSHandler to read files from a zip file.
I follow the example code that is available for this, and use Unix style 
paths as this is recommended even though the code is running on Windows.

However with the new 2.8 RC1 this is not working anymore.
Before a file is loaded the path is "Unixified" in MakeCorrectPath
In wxArchiveFSCacheDataImpl::Get(const wxString& name) the call to 
wxArchiveEntry::GetName() calls wxZipEntry::GetName with no paramters so 
it gets called with wxPATH_NATIVE. This on Windows of course means 
wxPATH_DOS. So the filename is converted to Dos style.
The files are all located in a sub folder in the zip file.

So calling wxFileSystem::OpenFile() with the  parameter 
"c:/myfolder/filename.zip#zip:/subfolder/filename" results  in a  name 
comparison of
"subfolder/filename" and "subfolder\filename" which fails.

I don't know where to report this so I am sending it to the mailing list 
in hope of answers.

Best Regards
Anumeet Singh




More information about the wx-users mailing list