Browse Source

Configure utf-8 for stdin and stderr in sitecustomize

pull/324/head
Ionite 12 months ago
parent
commit
9315a45103
No known key found for this signature in database
  1. 2
      StabilityMatrix.Avalonia/Assets/sitecustomize.py

2
StabilityMatrix.Avalonia/Assets/sitecustomize.py

@ -46,7 +46,9 @@ def audit(event: str, *args):
# Reconfigure stdout to UTF-8
# noinspection PyUnresolvedReferences
sys.stdin.reconfigure(encoding="utf-8")
sys.stdout.reconfigure(encoding="utf-8")
sys.stderr.reconfigure(encoding="utf-8")
# Install the audit hook
sys.addaudithook(audit)

Loading…
Cancel
Save