diff --git a/gramps/plugins/lib/libgedcom.py b/gramps/plugins/lib/libgedcom.py old mode 100644 new mode 100755 index 05790aa51..05c1d6d2d --- a/gramps/plugins/lib/libgedcom.py +++ b/gramps/plugins/lib/libgedcom.py @@ -1750,10 +1750,11 @@ class IdFinder(object): @rtype: str """ index = self.prefix % self.index - while str(index) in self.ids: + # self.ids contains 'bytes' data + while index.encode('utf-8') in self.ids: self.index += 1 index = self.prefix % self.index - self.ids.add(index) + self.ids.add(index.encode('utf-8')) self.index += 1 return index