Bug with Viewer and Localized characters

Bug #1530517 reported by Paxel on 2016-01-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Bug noticed with CBZ & CBR books. One example included in attached document.
Context :
- Win10 64bits
- for books that have been imported by a previous version of Calibre
- either inner directory names or inner filenames contain accentuated characters, as î or ô
- when clicking to view the book, I a unable to vizualise the book. I get the following message : All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

- Here are the details :
calibre, version 2.48.0
ERREUR : Impossible d’ouvrir le livre numérique: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

Traceback (most recent call last):
  File "site-packages\calibre\gui2\viewer\main.py", line 37, in run
  File "threading.py", line 763, in run
  File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 112, in __enter__
  File "site-packages\calibre\customize\conversion.py", line 241, in __call__
  File "site-packages\calibre\ebooks\conversion\plugins\comic_input.py", line 229, in convert
  File "site-packages\calibre\ebooks\metadata\opf2.py", line 1496, in render
  File "site-packages\lxml-3.3.5-py2.7-win-amd64.egg\lxml\builder.py", line 210, in __call__
  File "site-packages\lxml-3.3.5-py2.7-win-amd64.egg\lxml\builder.py", line 195, in add_dict
  File "lxml.etree.pyx", line 2245, in lxml.etree._Attrib.__setitem__ (src\lxml\lxml.etree.c:58790)
  File "apihelpers.pxi", line 547, in lxml.etree._setAttributeValue (src\lxml\lxml.etree.c:19025)
  File "apihelpers.pxi", line 1395, in lxml.etree._utf8 (src\lxml\lxml.etree.c:26485)
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

- using an archive viewer such as 7Zip, I can open the .CBZ or .CBR archive and view the individual jpg pages. So I am sure the data is not corrupted on disk and that the bug is really in Calibre.

Best regards,
Patrick Huguet

Paxel (paxel) wrote :

Convert the book to epub and view that and you will be fine. Fix for the
viewer will be in the enxt release.

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  Edit
Everyone can see this information.

Other bug subscribers