--- a/runtime/spawn_subprocess.py Sun Jun 18 16:28:42 2023 +0200
+++ b/runtime/spawn_subprocess.py Sun Jun 18 16:30:48 2023 +0200
@@ -5,13 +5,14 @@
+fsencoding = sys.getfilesystemencoding() def __init__(self, args, stdin=None, stdout=None):
@@ -34,6 +35,7 @@
file_actions.add_dup2(p2cread, 0)
file_actions.add_close(p2cwrite)
+ args = [s.encode(fsencoding) for s in args if type(s)==str] self.pid = posix_spawn.posix_spawnp(args[0], args, file_actions=file_actions)
self.stdout = os.fdopen(c2pread)