Setting correct state of general purpose flag bits (mismatch between local and central GPF bit 11 ("UTF-8")) #490
Replies: 1 comment
-
closed in favour of #491 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I open an existing archive with my implementation at https://github.com/troldal/OpenXLSX/blob/ktb_zippy/Tests/ziptest.cpp, adding a single new file to the archive and then perform an unzip on the resulting file, unzip complains like so:
This mismatch between GPF bits is reported for all pre-existing files in the archive, but not for the one I added myself.
The extracted data is intact, but I am afraid that may no longer be the case when UTF8 contents are contained.
I found the function
zip_source_get_file_attributes
to get the (presumably central)general_purpose_bit_flags
of the archive, however, looking through the library source code, I see no way to set those flags on API level: all functions that call an internal function with attributes pass to them a default attributes set that is not exposed to the API.Could you enlighten me
I am sure I must be doing something wrong in my implementation & I hope it's an easy fix.
Beta Was this translation helpful? Give feedback.
All reactions