View Single Post
Old 10-24-2011, 01:10 PM   #427
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,701
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by tompe View Post
Just look at the example file and see if there is a 0 at position 32 or less.

Maybe the title contains unicode characters?
No unicode on my end. I just manually typed the title in question to be sure (in case copy paste was doing something weird).

With these really long titles, calibre appears to be filling the entire database name string with 32 characters from the title. The NUL doesn't occur until position 33:

Code:
The_Demon-Haunted_World__Science\x00
That's two underscores between 'World' and 'Science'. With shorter names, the NUL appears at position 32 or less.

It definitely seems like a calibre issue to me... IF it can be verified that a NUL is definitely supposed to be in the 32nd position (or less) of a valid Palmdoc header.

EDIT: Many Kindle books no longer have a Palm DB Name, so I can't compare with one of theirs. The only Kindle book I have with a title longer than 32 characters doesn't have a Database name.

Last edited by DiapDealer; 10-24-2011 at 07:07 PM. Reason: Typo
DiapDealer is offline   Reply With Quote