From 47fc6a689dc0aad2a9e4157ab63ee0663cc59913 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 19 Feb 2025 13:18:17 -0800 Subject: [PATCH] Revert "fix: Ignore decoding errors when reading text files" This reverts commit f67ea5d0100b39c4341e43e3a7dbdc1747957bc2. --- aider/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/io.py b/aider/io.py index 44263bdd4..5ab11f0d6 100644 --- a/aider/io.py +++ b/aider/io.py @@ -368,7 +368,7 @@ class InputOutput: return self.read_image(filename) try: - with open(str(filename), "r", encoding=self.encoding, errors="replace") as f: + with open(str(filename), "r", encoding=self.encoding) as f: return f.read() except FileNotFoundError: if not silent: