[sword-devel] BUG: VerseKey::setLocale doesn't work properly

Martin Gruner sword-devel@crosswire.org
Sat, 9 Feb 2002 23:31:26 +0100


Please see below:

> Send this message some days ago, but nobody replied ...
>
> Joachim
>
> ---------------------
>
> Hi!
>
> While working on BibleTime's verse parsing I noticed some bad behaviour of
> VerseKey::setLocale.
> Have a look at this piece of code:
>
>         VerseKey bla;
>         bla = "James 1:19";
>
>         bla.setLocale("de");
>         cout << bla << endl;
>         bla = "Johannes 1:1";
>         cout << bla << endl;
>
> The output of this is:
>
> 	Jakobus 1:19
> 	Offenbarung 22:21
>
> The first one (Jakobus 1:1, which is James 1:19 in english) is correct. But
> if I equate the VerseKey object after changing the locale with a german
> book name (Johannes 1:1, which is John 1:1 in english) is returns all the
> time Revelation 22:21.
> Since it returns all the time the last verse Revelation after chaning the
> locale I think something's wrong here.
>
> Am I doing something wrong or is it a bug?
>
> Thank you very much for your support!
> Joachim