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:
Etoh 2023-02-28 20:32:29 +00:00 committed by GitHub
parent c8e260c8f6
commit a6b8b6d333
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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