Log --debug as UTF-8 to fix charmap mapping

This commit is contained in:
Etoh 2023-02-21 19:52:42 +00:00 committed by GitHub
parent e1bcf12a1a
commit f1babdb596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)