mirror of https://github.com/Syncplay/syncplay
Log --debug as UTF-8 to fix charmap mapping (#586)
* Log --debug as UTF-8 to fix charmap mapping * Log --debug as UTF-8 to fix charmap mapping (v2)
This commit is contained in:
parent
c8e260c8f6
commit
a6b8b6d333
|
@ -201,7 +201,7 @@ def blackholeStdoutForFrozenWindow():
|
|||
path = os.path.join(os.getenv('HOME', '.'), fname)
|
||||
else:
|
||||
path = os.path.join(os.getenv('APPDATA', '.'), fname)
|
||||
self._file = open(path, 'a')
|
||||
self._file = open(path, 'a', encoding='utf-8')
|
||||
# TODO: Handle errors.
|
||||
if self._file is not None:
|
||||
self._file.write(text)
|
||||
|
|
Loading…
Reference in New Issue