From ca45db289858d86781af72a4fdd604b8c81f8e18 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 5 Jul 2023 20:51:35 -0700 Subject: [PATCH] use utf-8 --- aider/diffs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/diffs.py b/aider/diffs.py index 1330d01dc..784745688 100644 --- a/aider/diffs.py +++ b/aider/diffs.py @@ -11,10 +11,10 @@ def main(): file_orig, file_updated = sys.argv[1], sys.argv[2] - with open(file_orig, "r") as f: + with open(file_orig, "r", encoding="utf-8") as f: lines_orig = f.readlines() - with open(file_updated, "r") as f: + with open(file_updated, "r", encoding="utf-8") as f: lines_updated = f.readlines() for i in range(len(file_updated)):