diff --git a/ChangeLog b/ChangeLog index 84d85957a..dc1154bc8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-01-28 Don Allingham + * src/GrampsDb/_GrampsBSDDB.py: qualify strxfrm + 2006-01-27 Alex Roitman * src/GrampsDb/_ReadGedcom.py: Typo. * src/GrampsDb/_GrampsBSDDB.py: Correct duplicate event IDs on upgrade. diff --git a/src/GrampsDb/_GrampsBSDDB.py b/src/GrampsDb/_GrampsBSDDB.py index 8dab566cf..feda10859 100644 --- a/src/GrampsDb/_GrampsBSDDB.py +++ b/src/GrampsDb/_GrampsBSDDB.py @@ -857,10 +857,10 @@ class GrampsBSDDB(GrampsDbBase): return table.keys() def get_surname_list(self): - vals = [ (strxfrm(unicode(val)),unicode(val)) + vals = [ (locale.strxfrm(unicode(val)),unicode(val)) for val in set(self.surnames.keys()) ] vals.sort() - return [item[0] for item in vals] + return [item[1] for item in vals] def get_person_event_type_list(self): vals = [ unicode(val) for val in set(self.eventnames.keys()) ]