Commit f2f47619 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Decode file to UTF-8 after reading the temporary file.

parent 723f6254
...@@ -57,7 +57,7 @@ class EditCommand(MultiCommand, ListCommand): ...@@ -57,7 +57,7 @@ class EditCommand(MultiCommand, ListCommand):
def _todos_from_temp(self, p_temp_file): def _todos_from_temp(self, p_temp_file):
p_temp_file.seek(0) p_temp_file.seek(0)
todos = p_temp_file.read().splitlines() todos = p_temp_file.read().decode('utf-8').splitlines()
todo_objs = [] todo_objs = []
for todo in todos: for todo in todos:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment