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>&nbsp;&nbsp;&nbsp; SWMgr mgr(new MarkupFilterMgr(FMT_HTMLHREF));//, ENC_HTML));<br>&nbsp;&nbsp;&nbsp; SWModule* mod = mgr.getModule(&quot;ESV&quot;);<br>&nbsp;&nbsp;&nbsp; mod-&gt;setKey(argv[1]);<br>&nbsp;&nbsp;&nbsp; std::cout &lt;&lt; &quot;Testing output for &quot; &lt;&lt; argv[1] &lt;&lt; &quot;\n&quot;;
<br>&nbsp;&nbsp;&nbsp; std::cout &lt;&lt; mod-&gt;RenderText() &lt;&lt; &quot;\n&quot;;<br>&nbsp;&nbsp;&nbsp; std::cout &lt;&lt; &quot;DONE\n&quot;;<br>&nbsp;&nbsp;&nbsp; return 0;<br>}<br><br><span>Now if you call this with argument Gen3 :1, it freezes, where</span>
<span>as Gen3:2 doesn&#39;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 &amp; 0x80) {<br>                    /* lots of code here*/<br>                }<br>        }<br></pre><br><span>Now if the *p &amp; 0x80 is false, it goes into an infinite loop.<br>Possibly p needs to be incremented otherwise? I don&#39;t know the logic of the code, so I can&#39;t suggest a solution.
<br></span>&nbsp;<br>God Bless,<br>Ben<br>-------------------------------------------------------------------------------------------<br>&quot;For I have no pleasure in the death of anyone, declares the Lord GOD; so turn, and live.&quot; 
<br>Ezekiel 18:32
<br><br><div><span class="gmail_quote">On 10/16/07, <b class="gmail_sendername">Karl Kleinpaste</b> &lt;<a href="mailto:karl@kleinpaste.org">karl@kleinpaste.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&quot;Ben Morgan&quot; &lt;<a href="mailto:benpmorgan@gmail.com">benpmorgan@gmail.com</a>&gt; writes:<br>&gt; I&#39;m getting some weird problems on RC5. When I try to look up Genesis<br>&gt; 3:1 in the ESV, It freezes.<br>
<br>GnomeSword is happy to retrieve that, as is diatheke:<br><br>| &gt; 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>