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

Joachim Ansorg sword-devel@crosswire.org
Mon, 28 Jan 2002 11:15:52 +0100

Send this message some days ago, but nobody replied ...




While working on BibleTime's verse parsing I noticed some bad behaviour of 
Have a look at this piece of code:

        VerseKey bla;
        bla = "James 1:19";

        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!