Pin the compile locale in the generic pch flow too

This commit is contained in:
J. Nick Koston
2026-08-26 09:08:02 -05:00
parent a07bdf3a03
commit 3d35a111ac
+8 -1
View File
@@ -354,7 +354,14 @@ def prepare_pch(
_log_pch_in_use()
try:
result = subprocess.run(
cmd, cwd=cmd_dir, capture_output=True, text=True, check=False, timeout=300
cmd,
cwd=cmd_dir,
# C locale keeps diagnostics matchable by _TRANSIENT_ERRORS
env={**os.environ, "LC_ALL": "C"},
capture_output=True,
text=True,
check=False,
timeout=300,
)
error = None
if result.returncode < 0: