Hi,<br><br>Just to make this plain: This only happens with FMT_HTMLHREF, Also, this used to work (in 1.5.9).<br>This will also happen in C++, not just in python. Snippet of C++ code I tried:<br><br>int main(int argc, char** argv)
<br>{<br> SWMgr mgr(new MarkupFilterMgr(FMT_HTMLHREF));//, ENC_HTML));<br> SWModule* mod = mgr.getModule("ESV");<br> mod->setKey(argv[1]);<br> std::cout << "Testing output for " << argv[1] << "\n";
<br> std::cout << mod->RenderText() << "\n";<br> std::cout << "DONE\n";<br> return 0;<br>}<br><br><span>Now if you call this with argument Gen3 :1, it freezes, where</span>
<span>as Gen3:2 doesn't. Genesis 3:8 also does.<br>It chokes on divineName. The</span> problem occurs in isValidUTF8, called by toupperstr<br><br>The loop in isValidUTF8 looks like this:<br><pre>        while (*p) {<br>                // Is the high order bit set?
<br>                if (*p & 0x80) {<br> /* lots of code here*/<br>                }<br>        }<br></pre><br><span>Now if the *p & 0x80 is false, it goes into an infinite loop.<br>Possibly p needs to be incremented otherwise? I don't know the logic of the code, so I can't suggest a solution.
<br></span> <br>God Bless,<br>Ben<br>-------------------------------------------------------------------------------------------<br>"For I have no pleasure in the death of anyone, declares the Lord GOD; so turn, and live."
<br>Ezekiel 18:32
<br><br><div><span class="gmail_quote">On 10/16/07, <b class="gmail_sendername">Karl Kleinpaste</b> <<a href="mailto:karl@kleinpaste.org">karl@kleinpaste.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
"Ben Morgan" <<a href="mailto:benpmorgan@gmail.com">benpmorgan@gmail.com</a>> writes:<br>> I'm getting some weird problems on RC5. When I try to look up Genesis<br>> 3:1 in the ESV, It freezes.<br>
<br>GnomeSword is happy to retrieve that, as is diatheke:<br><br>| > diatheke -b ESV -k g3:1<br>| Genesis 3:1: Now the serpent was more crafty than any other beast of the<br>| field that the Lord God had made.<br>| He said to the woman, Did God actually say, You shall not eat of any
<br>| tree in the garden? (ESV)<br><br>_______________________________________________<br>sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br><a href="http://www.crosswire.org/mailman/listinfo/sword-devel">
http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>Instructions to unsubscribe/change your settings at above page<br></blockquote></div><br><br>