From 2dc1048a1f56d6148237bfbf68f2e1ea933e30d5 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 26 Jun 2023 20:17:46 -0400 Subject: [PATCH] Specify encoding in fdopen. Fixes #195. --- execnet/gateway_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/execnet/gateway_base.py b/execnet/gateway_base.py index 5db185fb..83c23e90 100644 --- a/execnet/gateway_base.py +++ b/execnet/gateway_base.py @@ -116,7 +116,7 @@ def start(self, func, args=()): def fdopen(self, fd, mode, bufsize=1): import os - return os.fdopen(fd, mode, bufsize) + return os.fdopen(fd, mode, bufsize, encoding="utf-8") def Lock(self): import threading