[bt-devel] NET Bible Unlock Bug fixed

Martin Gruner mg.pub at gmx.net
Wed Oct 3 05:27:35 MST 2007


Hi Jeremy,

you are right, I should not have assumed Latin1 text in all cases. Now BT uses 
QString::fromUtf8() instead if the module is in Unicode, and it seems to 
work.

mg

Am Donnerstag, 27. September 2007 schrieb Jeremy Erickson:
> 	As I posted on the wiki, I found a bug in the port of BibleTime to KDE 4
> which it turns out is also present in the current KDE 3 version.  When I
> start BibleTime, it prints a message, "WARNING: Unlock key of module NET is
> not valid."  However, it is nonetheless possible to use the module as if
> there was no problem.  I found out that the message is being printed from
> line 178 in src/backend/drivers/cswordmoduleinfo.cpp when it encounters a
> nonprinting character in the text of Genesis 1.  It does in fact decrypt
> the text properly, but some Hebrew characters (the name "Elohim" in
> footnote 2 of 1:1) are represented improperly in the QString and as such
> test as nonprinting characters.  This causes the test for a proper
> unlocking to fail. I think the root cause is using fromLatin1() when the
> text itself was not encoded in Latin 1.  Would there be a simple fix to
> make sure the text encoding is handled properly?  I think this would be
> sufficient to fix the bug.  Alternatively, would there be a cleaner way to
> check for unlocking?
>
> -Jeremy Erickson
>
> _______________________________________________
> bt-devel mailing list
> bt-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/bt-devel





More information about the bt-devel mailing list