From f1babdb5960e29e78c9424bbda0ab3b99b60cdc4 Mon Sep 17 00:00:00 2001 From: Etoh Date: Tue, 21 Feb 2023 19:52:42 +0000 Subject: [PATCH] Log --debug as UTF-8 to fix charmap mapping --- syncplay/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/utils.py b/syncplay/utils.py index 034a625..41e597a 100755 --- a/syncplay/utils.py +++ b/syncplay/utils.py @@ -195,7 +195,7 @@ def blackholeStdoutForFrozenWindow(): _file = 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 os.name != 'nt': path = os.path.join(os.getenv('HOME', '.'), fname)