generate: log: Add encoding=utf-8 to Path.open
Specify the encoding to use for the logfile. Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
parent
7200d09621
commit
53622827a0
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class Log:
|
|||
print(msg)
|
||||
if self.logfile == Path("/dev/stdout"):
|
||||
return
|
||||
with self.logfile.open("a+") as f:
|
||||
with self.logfile.open("a+", encoding="utf-8") as f:
|
||||
f.write(msg)
|
||||
|
||||
def timestamp(self) -> str:
|
||||
|
|
Loading…
Add table
Reference in a new issue