diff --git a/scripts/export.py b/scripts/export.py index e351b91..0a9664a 100644 --- a/scripts/export.py +++ b/scripts/export.py @@ -72,7 +72,7 @@ def remove_excluded_paths(target: Path, exclude: list[str]) -> None: def _run(cmd: list[str], cwd: Path, check: bool = True) -> subprocess.CompletedProcess: - result = subprocess.run(cmd, cwd=cwd, check=False, text=True, capture_output=True) + result = subprocess.run(cmd, cwd=cwd, check=False, capture_output=True, encoding="utf-8", errors="replace") if check and result.returncode != 0: detail = (result.stderr or result.stdout or "").strip() if detail: