[sword-devel] 1.5.10RC5 available

DM Smith dmsmith555 at yahoo.com
Tue Oct 16 19:12:29 MST 2007


Ben,
	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.
	Many thanks for your catch of that bug.
In Him,
	DM

On Oct 16, 2007, at 7:27 PM, Ben Morgan wrote:

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.crosswire.org/pipermail/sword-devel/attachments/20071016/5570b64d/attachment.html 


More information about the sword-devel mailing list