[sword-devel] Bug in CVS: VerseKey::setLocale
Troy A. Griffitts
sword-devel@crosswire.org
Sun, 18 Aug 2002 10:42:37 -0700
Yep, sounds like 'wrong' behaviour! :) I bet setLocale is not
propogating the locale change to it's bound keys. Please have a look if
you get a chance! Thanks!
-Troy.
Joachim Ansorg wrote:
> Troy,
> I'm sorry for ot reporting this earlier.
> Consider this piece of code:
>
> //we assume the english locale default
> VerseKey key("Luke 1:1", "John");
> key.setLocale("de");
> /*
> here key.LowerBound() should return "Lukas 1:1", but it returns the english
> "Luke 1:1"
> */
> kes.LowerBound().setLocale("en");
>
> //key.LowerBound() returns now the correct "Lukas 1:1"
> //the same behaviour is valid for UpperBound()
>
> Is this wrong behaviour so I can try to fix this or shouldn't I touch this
> "feature"?
>
> I'd be glad for an answer!
> Joachim
>