Skip to content

Commit

Permalink
Bugfix for Codec error on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kokimame committed Feb 24, 2018
1 parent 9482913 commit 8446153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/open.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _completed(self):
self.reject()

def _count_row(self):
with open(self.path) as f:
with open(self.path, encoding='utf-8') as f:
for i, l in enumerate(f):
pass
return i + 1

0 comments on commit 8446153

Please sign in to comment.