<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Ben,<div><span class="Apple-tab-span" style="white-space:pre">        </span>What you were seeing was an attempt of better "graceful degradation" that was buggy. Troy has now backed out the change so that the old "graceful degradation." UTF-8 modules need ICU support to work properly.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Many thanks for your catch of that bug.<br></div><div>In Him,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>DM<br class="webkit-block-placeholder"></div><div><br><div><div>On Oct 16, 2007, at 7:27 PM, Ben Morgan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br><br>Yes, the problem does seem to go away with icu (testing with the lookup example)<br><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><br><div><span class="gmail_quote">On 10/17/07, <b class="gmail_sendername">DM Smith</b> &lt;<a href="mailto:dmsmith555@yahoo.com">dmsmith555@yahoo.com</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;"> If you compile with icu support does the problem go away?<br><br>Ben Morgan wrote:<br>&gt; Hi,<br>&gt;<br>&gt; Just to make this plain: This only happens with FMT_HTMLHREF, Also,<br>&gt; this used to work (in 1.5.9).<br>&gt; This will also happen in C++, not just in python. Snippet of C++ code <br>&gt; I tried:<br>&gt;<br>&gt; int main(int argc, char** argv)<br>&gt; {<br>&gt;     SWMgr mgr(new MarkupFilterMgr(FMT_HTMLHREF));//, ENC_HTML));<br>&gt;     SWModule* mod = mgr.getModule("ESV");<br>&gt;     mod-&gt;setKey(argv[1]); <br>&gt;     std::cout &lt;&lt; "Testing output for " &lt;&lt; argv[1] &lt;&lt; "\n";<br>&gt;     std::cout &lt;&lt; mod-&gt;RenderText() &lt;&lt; "\n";<br>&gt;     std::cout &lt;&lt; "DONE\n"; <br>&gt;     return 0;<br>&gt; }<br>&gt;<br>&gt; Now if you call this with argument Gen3 :1, it freezes, where as<br>&gt; Gen3:2 doesn't. Genesis 3:8 also does.<br>&gt; It chokes on divineName. The problem occurs in isValidUTF8, called by <br>&gt; toupperstr<br>&gt;<br>&gt; The loop in isValidUTF8 looks like this:<br>&gt;       while (*p) {<br>&gt;               // Is the high order bit set?<br>&gt;<br>&gt;               if (*p &amp; 0x80) {<br>&gt;                     /* lots of code here*/ <br>&gt;               }<br>&gt;       }<br>&gt;<br>&gt;<br>&gt; Now if the *p &amp; 0x80 is false, it goes into an infinite loop.<br>&gt; Possibly p needs to be incremented otherwise? I don't know the logic<br>&gt; of the code, so I can't suggest a solution. <br>&gt;<br>&gt; God Bless,<br>&gt; Ben<br>&gt; -------------------------------------------------------------------------------------------<br>&gt; "For I have no pleasure in the death of anyone, declares the Lord GOD; <br>&gt; so turn, and live."<br>&gt; Ezekiel 18:32<br>&gt;<br>&gt; On 10/16/07, *Karl Kleinpaste* &lt;<a href="mailto:karl@kleinpaste.org">karl@kleinpaste.org</a><br>&gt; &lt;mailto:<a href="mailto:karl@kleinpaste.org"> karl@kleinpaste.org</a>&gt;&gt; wrote:<br>&gt;<br>&gt;     "Ben Morgan" &lt;<a href="mailto:benpmorgan@gmail.com">benpmorgan@gmail.com</a> &lt;mailto:<a href="mailto:benpmorgan@gmail.com">benpmorgan@gmail.com</a> &gt;&gt;<br>&gt;     writes:<br>&gt;     &gt; I'm getting some weird problems on RC5. When I try to look up<br>&gt;     Genesis<br>&gt;     &gt; 3:1 in the ESV, It freezes.<br>&gt;<br>&gt;     GnomeSword is happy to retrieve that, as is diatheke: <br>&gt;<br>&gt;     | &gt; diatheke -b ESV -k g3:1<br>&gt;     | Genesis 3:1: Now the serpent was more crafty than any other<br>&gt;     beast of the<br>&gt;     | field that the Lord God had made.<br>&gt;     | He said to the woman, Did God actually say, You shall not eat of <br>&gt;     any<br>&gt;     | tree in the garden? (ESV)<br>&gt;<br>&gt;     _______________________________________________<br>&gt;     sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org </a><br>&gt;     &lt;mailto:<a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>&gt;<br>&gt;     <a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel </a><br>&gt;     Instructions to unsubscribe/change your settings at above page<br>&gt;<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________ <br>&gt; sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>&gt; <a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel </a><br>&gt; Instructions to unsubscribe/change your settings at above page<br><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><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Instructions to unsubscribe/change your settings at above page</div> </blockquote></div><br></div></body></html>