Log --debug as UTF-8 to fix charmap mapping
This commit is contained in:
parent
e1bcf12a1a
commit
f1babdb596
@ -195,7 +195,7 @@ def blackholeStdoutForFrozenWindow():
|
|||||||
_file = None
|
_file = None
|
||||||
_error = None
|
_error = None
|
||||||
|
|
||||||
def write(self, text, fname='.syncplay.log'):
|
def write(self, text, fname='.syncplay.log', encoding='utf-8'):
|
||||||
if self._file is None and self._error is None:
|
if self._file is None and self._error is None:
|
||||||
if os.name != 'nt':
|
if os.name != 'nt':
|
||||||
path = os.path.join(os.getenv('HOME', '.'), fname)
|
path = os.path.join(os.getenv('HOME', '.'), fname)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user