https://bugs.documentfoundation.org/show_bug.cgi?id=163818

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTOURBUG

--- Comment #10 from [email protected] ---
Fixed the issue on my side.

When recreating LibreOffice zips using minizip-ng

After opening the zip file (mz_zip_writer_open_file), set an internal minizip
flag:

        void* writer_zip_handle = nullptr;
        err = mz_zip_writer_get_zip_handle(zip_writer, &writer_zip_handle);
        if (err == MZ_OK)
                mz_zip_set_data_descriptor(writer_zip_handle, 0);

This sets the use of data descriptor flag when writing zip entries

mz_zip_writer_copy_from_reader() now works as expected with LibreOffice files.

I don't know why this is required.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to