From 01041620c503082a2876fdb739497a3965821d5f Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 28 Jan 2006 19:32:09 +0000 Subject: [PATCH] * src/GrampsDb/_GrampsBSDDB.py: qualify strxfrm svn: r5848 --- gramps2/ChangeLog | 3 +++ gramps2/src/GrampsDb/_GrampsBSDDB.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 84d85957a..dc1154bc8 100644 --- a/gramps2/ChangeLog +++ b/gramps2/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/gramps2/src/GrampsDb/_GrampsBSDDB.py b/gramps2/src/GrampsDb/_GrampsBSDDB.py index 8dab566cf..feda10859 100644 --- a/gramps2/src/GrampsDb/_GrampsBSDDB.py +++ b/gramps2/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()) ]