From 0b137c5f624458f3a446e9e9efe2cd5ecca9b8a6 Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Tue, 10 Jan 2023 13:38:28 +0100 Subject: [PATCH] Explicitly set utf-8 for stdin/out/err. --- helper/authenticator-helper.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helper/authenticator-helper.py b/helper/authenticator-helper.py index 1fe5b3f7..08d1eaa7 100644 --- a/helper/authenticator-helper.py +++ b/helper/authenticator-helper.py @@ -32,4 +32,8 @@ if __name__ == "__main__": run_rpc_socket(sock) else: + sys.stdin.reconfigure(encoding="utf-8") + sys.stdout.reconfigure(encoding="utf-8") + sys.stderr.reconfigure(encoding="utf-8") + run_rpc_pipes(sys.stdout, sys.stdin)