Quote:
Originally Posted by KevinH
The long term solution is for calibre to implement its own zipfile.py code (if it does not do that already) and handle the special case of improper utf-8 flags being set on garbage central directory filenames.
|
calibre does use its own modified version of zipfile.py. You are welcome to submit a patch against it for this issue, if you have epubs that have the issue. Note that to properly solve this, you will not only have to ignore the centrral directory but also correctly decode the local names to unicode. This is because, on windows calibre has to use unicode filenames to avoid encoding issues in the filesystem.