Accept malformed UTF-8 in compiler output (#731)

Untested. See https://docs.python.org/3/library/io.html#io.TextIOWrapper for the allowed values of `errors`.
This commit is contained in:
Simon Lindholm
2023-04-10 03:25:00 +02:00
committed by GitHub
parent d61a6ea952
commit 8aa4fe151c

View File

@@ -125,6 +125,7 @@ class Sandbox(contextlib.AbstractContextManager["Sandbox"]):
return subprocess.run(
command,
text=True,
errors="backslashreplace",
env=env,
cwd=self.path,
check=True,