NO

Recent Posts

Pages: 1 ... 7 8 [9] 10
81
General discussions / Re: miniz 3.0.2
« Last post by TimoVJL on October 23, 2024, 11:13:03 AM »
A that example3.c don't make zip, only pack file.

Test Zip files online for free
82
General discussions / Re: miniz 3.0.2
« Last post by John Z on October 23, 2024, 11:10:27 AM »
Thanks TimoVJL,

I have grabbed your work and will see how - appreciate the test, and the help, and your time!

Vortex,  sorry to report that the zip file created with Msys2 version of zip, turns out to not be a valid zip file. 
Even the header characters are wrong.  7z, Zip, etc nothing can open it.  Not sure what went wrong - - Thanks
for trying it though!  I might still try Msys2 later.

John Z
83
General discussions / Re: miniz 3.0.2
« Last post by Vortex on October 23, 2024, 11:05:30 AM »
Hi Timo,

Your example3 built and mine are producing the same zip file, no problem. As you said, test_meta_xml.exe is omitting the first character of the filename.
 
84
General discussions / Re: miniz 3.0.2
« Last post by TimoVJL on October 23, 2024, 06:41:20 AM »
example3.c with modified richgel999's miniz code

test_meta_xml is kuba zip version
32-bit version miss first char from filename  :(
85
General discussions / Re: miniz 3.0.2
« Last post by John Z on October 23, 2024, 12:04:38 AM »
Thanks very much Vortex!  Appreciate the help.

Wow this is even a different size too.

I'll check it out and see how LibreOffice likes it.

Thanks again!

John Z
86
General discussions / Re: miniz 3.0.2
« Last post by Vortex on October 22, 2024, 11:47:38 PM »
Hi John,

Here is the attached file :

Code: [Select]
# ./example3.exe c meta.xml meta.zip
miniz.c version: 11.0.2
Mode: c, Level: 9
Input File: "meta.xml"
Output File: "meta.zip"
Input file size: 642
Total input bytes: 642
Total output bytes: 317
Success.
87
General discussions / Re: miniz 3.0.2
« Last post by John Z on October 22, 2024, 11:31:36 PM »
Hi Vortex,

Glad you have Msys2 working, I have not tried it yet.

If possible using your Msys2 compile can you ZIP the attached file and re-post?  It would be a big help to see if the 3.0.2 itself has an issue or if the wrapper around it has an issue. Using the wrapper version the packed file is 311 bytes but using my older 1.19 version it is 312 bytes.  With the missing 1 byte LibreOffice indicates the file is corrupt.  However it repairs it easily, and if I open the file and compare to the original it is identical so the issue is not the source but the compression/packing.  Interestingly only 1 file out of the five in the zip has the issue, so I'm think it may be a padding problem.

If possible - if not I appreciate your input too.

Thanks,
John Z
88
General discussions / Re: miniz 3.0.2
« Last post by Vortex on October 22, 2024, 10:29:07 PM »
Hi Timo,

Thanks for your suggestion. Using Msys2, I can compile richgel999's miniz code :

Code: [Select]
user@computer MINGW64 ~
# gcc -c miniz.c -o miniz.o

user@computer MINGW64 ~
# gcc example3.c miniz.o -o example3.exe

user@computer MINGW64 ~
89
General discussions / Re: miniz 3.0.2
« Last post by John Z on October 22, 2024, 09:55:31 PM »
It is his but with an additional wrapper to make it easier to use.  :)

https://github.com/kuba--/zip
"A portable (OSX/Linux/Windows/Android/iOS), simple zip library written in C"
"This is done by hacking awesome miniz library and layering functions on top of the miniz v3.0.2 API."


John Z
90
General discussions / Re: miniz 3.0.2
« Last post by TimoVJL on October 22, 2024, 05:54:41 PM »
richgel999's miniz updates frequently and perhaps better for Pelles C
Pages: 1 ... 7 8 [9] 10