From a84cad4a59560203c6ff8f5e6b21930e11f76a1a Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 30 Jul 2024 15:19:38 -0300 Subject: [PATCH] Add encoding and error handling to subprocess call in Commands class --- aider/commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aider/commands.py b/aider/commands.py index 48c7b12d7..360b171a0 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -620,6 +620,8 @@ class Commands: text=True, env=env, shell=True, + encoding=self.io.encoding, + errors="replace", ) combined_output = result.stdout except Exception as e: