fix: fix windows encoding issue
This commit is contained in:
@@ -83,6 +83,8 @@ def run_encode(cmd: list[str], input_path: str | None = None) -> int:
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT,
|
||||
text=True,
|
||||
encoding="utf-8",
|
||||
errors="replace",
|
||||
)
|
||||
|
||||
progress = Progress(
|
||||
|
||||
@@ -74,6 +74,8 @@ def run(cmd: list[str], capture: bool = True) -> subprocess.CompletedProcess:
|
||||
cmd,
|
||||
capture_output=capture,
|
||||
text=True,
|
||||
encoding="utf-8",
|
||||
errors="replace",
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user