mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-25 12:31:04 -05:00
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:
parent
bc852379f5
commit
d8115e6f3d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user