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,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.STDOUT,
|
stderr=subprocess.STDOUT,
|
||||||
text=True,
|
text=True,
|
||||||
|
encoding="utf-8",
|
||||||
|
errors="replace",
|
||||||
)
|
)
|
||||||
|
|
||||||
progress = Progress(
|
progress = Progress(
|
||||||
|
|||||||
@@ -74,6 +74,8 @@ def run(cmd: list[str], capture: bool = True) -> subprocess.CompletedProcess:
|
|||||||
cmd,
|
cmd,
|
||||||
capture_output=capture,
|
capture_output=capture,
|
||||||
text=True,
|
text=True,
|
||||||
|
encoding="utf-8",
|
||||||
|
errors="replace",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user