[sword-devel] BUG in VerseKey::ParseVerseList
Troy A. Griffitts
sword-devel@crosswire.org
Tue, 05 Mar 2002 17:36:01 -0700
Joachim,
I got myself into trouble with this new stuff. I rolled back my
versekey changes over the last couple days and fixed these 2 problems a
different way. Let me know how they work for you now.
-Troy.
Joachim Ansorg wrote:
>
> Troy,
> sorry for bugging you all the time. I found another bug in Sword. See the
> following small program:
>
> -------------
> #include <swmgr.h>
> #include <localemgr.h>
> #include <swmodule.h>
> #include <listkey.h>
>
> int main(int argc, char* argv[]) {
> LocaleMgr::systemLocaleMgr.setDefaultLocaleName("de");
>
> VerseKey k;
> k.setLocale("en");
> ListKey list = k.ParseVerseList("Luke 3:23-28",k, true);
> }
> ------------
>
> k.ParseVerseList does not return, IMHO an infinite loop. But this does only
> occur if the main language of Sword (here: "de") and the language of the
> VerseKey are different (here "en").
>
> Thank you for being so kind with me all the time.
>
> Joachim