nih-at/libzip

ZIP_ER_INCONS error (Zip archive inconsistent) on an apparently valid ZIP archive

fdegros opened this issue · 2 comments

libzip fails to open this ZIP archive. It returns a ZIP_ER_INCONS error: Zip archive inconsistent: entry 0: invalid UTF-8 in filename

This is observed with libzip version 1.10.1 on Linux version 6.5.13.

Also, I believe the error message claiming that there is some "invalid UTF-8 in filename" to be mistaken. The filename contains the "Escape" character U+001B, and it is correctly encoded in UTF-8. The other archive extraction tools that I tried can correctly extract this ZIP.

Thanks for the bug report! I've just fixed it.

Thanks. I confirm this is fixed.