fix(ci): enable Python UTF-8 mode globally and enforce utf-8 encoding in subprocess verify scripts for Windows

This commit is contained in:
Praveen Bishnoi
2026-08-12 13:20:58 +05:30
parent f73ef478cc
commit 5f3aa8fdda
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -48,6 +48,8 @@ def run_extract(args: list[str]) -> str:
[sys.executable, str(EXTRACT), *args],
capture_output=True,
text=True,
encoding="utf-8",
errors="replace",
)
if proc.returncode != 0:
fail(f"extractor exited {proc.returncode} for {args}: {proc.stderr.strip()}")
+2
View File
@@ -43,6 +43,8 @@ def invoke(args: list[str]) -> subprocess.CompletedProcess[str]:
[sys.executable, str(EXTRACT), *args],
capture_output=True,
text=True,
encoding="utf-8",
errors="replace",
)