From 8eabd91efe9e25a4154d70f8a202266402105570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Mon, 6 May 2024 19:47:06 +0800 Subject: [PATCH] fix --- plugins/exec/PyStand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/exec/PyStand.cpp b/plugins/exec/PyStand.cpp index ad84e2ec..c3c62c73 100644 --- a/plugins/exec/PyStand.cpp +++ b/plugins/exec/PyStand.cpp @@ -269,7 +269,7 @@ const auto init_script = #ifndef PYSTAND_CONSOLE L"try:\n" L" fd = os.open('CONOUT$', os.O_RDWR | os.O_BINARY)\n" - L" fp = os.fdopen(fd, 'w', encoding='utf8')\n" + L" fp = os.fdopen(fd, 'w')\n" L" sys.stdout = fp\n" L" sys.stderr = fp\n" L" attached = True\n"