ebook-convert crashes on files with urlencoded characters in file name

Bug #1593632 reported by leastcommonancestor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

ebook-convert crashes on files with urlencoded characters in file name, e.g.

   ebook-convert Stirbt+die+Kunst%EF%BC%9F.html out.epub -v

Result is:

1% Converting input to HTML...
InputFormatPlugin: HTML Input running
on /home/rieger/documents/ebooks/incoming/test/Stirbt+die+Kunst%EF%BC%9F.html
Language not specified
Building file list...
 Found files...
   HTMLFile:0:a:/home/rieger/documents/ebooks/incoming/test/Stirbt+die+Kunst%EF%BC%9F.html
Normalizing filename cases
Rewriting HTML links
Traceback (most recent call last):
  File "site.py", line 66, in main
  File "site-packages/calibre/ebooks/conversion/cli.py", line 380, in main
  File "site-packages/calibre/ebooks/conversion/plumber.py", line 1060, in run
  File "site-packages/calibre/customize/conversion.py", line 241, in __call__
  File "site-packages/calibre/ebooks/conversion/plugins/html_input.py", line 78, in convert
  File "site-packages/calibre/ebooks/conversion/plugins/html_input.py", line 171, in create_oebbook
KeyError: u'Stirbt_die_Kunst%ef%bc%9f.html'

The error apparently does not depend on the file contents.
The error was already present in version 2.58.

Revision history for this message
leastcommonancestor (leastcommonancestor) wrote :
Revision history for this message
leastcommonancestor (leastcommonancestor) wrote :

PS: The bug was tested on version 2.59.

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.