On Thu, 31 Jul 2008, Szakáts Viktor wrote: Hi Viktor,
> Now the remaining mystery is how 7-Zip could extract > the wrong file anyway :) It was not wrong. Just simply 7-Zip like myunzip does not compare CRC32 stored in compressed header with CRC32 in file ZIP entry ignoring it. > BTW, I wonder if we couldn't rather use hb_fs*() functions > instead of fopen/fread. (in places where this wouldn't > badly affect performance, like hb_zipGetFileInfo().) Or would > it have some other side effects? The ZIP code uses internally byte read so we will have to add buffered IO operations working like in stdio to not kill the performance. I plan to add sth like that in the future with more general usage, f.e. also for inet sockets. The C functions will have .prg wrappers operating on POINTER items too. It will also greatly simplified improving the speed many other things, f.e. text file processing with functions like hb_readline(). best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour