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> <<a href="mailto:dmsmith555@yahoo.com">dmsmith555@yahoo.com</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;">
If you compile with icu support does the problem go away?<br><br>Ben Morgan wrote:<br>> Hi,<br>><br>> Just to make this plain: This only happens with FMT_HTMLHREF, Also,<br>> this used to work (in 1.5.9).<br>> This will also happen in C++, not just in python. Snippet of C++ code
<br>> 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>> Now if you call this with argument Gen3 :1, it freezes, where as<br>> Gen3:2 doesn't. Genesis 3:8 also does.<br>> It chokes on divineName. The problem occurs in isValidUTF8, called by
<br>> toupperstr<br>><br>> The loop in isValidUTF8 looks like this:<br>> while (*p) {<br>> // Is the high order bit set?<br>><br>> if (*p & 0x80) {<br>> /* lots of code here*/
<br>> }<br>> }<br>><br>><br>> 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<br>> of the code, so I can't suggest a solution.
<br>><br>> God Bless,<br>> Ben<br>> -------------------------------------------------------------------------------------------<br>> "For I have no pleasure in the death of anyone, declares the Lord GOD;
<br>> so turn, and live."<br>> Ezekiel 18:32<br>><br>> On 10/16/07, *Karl Kleinpaste* <<a href="mailto:karl@kleinpaste.org">karl@kleinpaste.org</a><br>> <mailto:<a href="mailto:karl@kleinpaste.org">
karl@kleinpaste.org</a>>> wrote:<br>><br>> "Ben Morgan" <<a href="mailto:benpmorgan@gmail.com">benpmorgan@gmail.com</a> <mailto:<a href="mailto:benpmorgan@gmail.com">benpmorgan@gmail.com</a>
>><br>> writes:<br>> > I'm getting some weird problems on RC5. When I try to look up<br>> 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<br>> 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
<br>> 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>> <mailto:<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>><br>><br>><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><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>