View Single Post
Old 11-05-2011, 05:44 AM   #1358
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by NiLuJe View Post
Oops, the latest update triggers some more encoding breakage in calibre-debug on my crappy ISO-8859-15 system...

'charmap' codec can't encode character u'\u2019' in position 56: character maps to <undefined>
This is only in debug mode, and as far as I know, it probably caused errors in older versions as well. I've added a an attempt to convert to your local encoding. I'm not sure if trying to replace the character or ignore it is best. Lets see if it catches it first.

Quote:
And leaves a zombie 'send metadata to device' job that can't be stopped, since it's a device job.

EDIT: In _queue_job_create_collections @ ui.py, uncommenting gui.info_read and commenting gui.metadata_downloaded helps, if that's any use to you .
Yes, that helps As you can see from the commenting out I was deciding how to make that call and the simpler function obviously doesn't work in all cases. It was tricky to get it to work at all. I've modified it slightly to hopefully make the call more robust, without doing the additional recheck of the device.

I've attached a test version with these 2 fixes - can you give them a try?

Last edited by meme; 11-06-2011 at 06:01 AM. Reason: Attachment removed - released version 1.7.9
meme is offline