dbi.FlatfileMapping: Fix listing records on Windows

All other methods open the file as UTF-8, but this one still used
the system's default.
This commit is contained in:
Valentin Lorentz 2024-07-20 19:33:09 +02:00
parent bc852379f5
commit d8115e6f3d

View File

@ -253,7 +253,7 @@ class FlatfileMapping(MappingInterface):
fd.close()
def __iter__(self):
fd = open(self.filename)
fd = open(self.filename, encoding='utf8')
fd.readline() # First line, nextId.
for line in fd:
(id, s) = self._splitLine(line)