Skip to content

Commit 70bab72

Browse files
committed
Set encoding for all commands to UTF-8
1 parent 4ff28e1 commit 70bab72

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/utils/command.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ def run(command: List[str], verbose: bool, env: Dict[str, str] = {}) -> CommandR
2626

2727
try:
2828
result = subprocess.run(
29-
command, capture_output=True, text=True, env=dict(os.environ, **env)
29+
command,
30+
capture_output=True,
31+
text=True,
32+
env=dict(os.environ, **env),
33+
encoding="utf-8",
3034
)
3135
except FileNotFoundError:
3236
error_msg = f"Command not found: {command[0]}"

0 commit comments

Comments
 (0)