feat: add encoding hint for file loading in commands

This commit is contained in:
Paul Gauthier 2024-10-29 12:42:31 -07:00 committed by Paul Gauthier (aider)
parent 6cec44e402
commit 2af48e159c

View file

@ -1252,6 +1252,7 @@ class Commands:
self.io.tool_error("Please provide a filename containing commands to load.")
return
#ai use io.encoding, ignore decode errs!
try:
with open(args.strip(), "r") as f:
commands = f.readlines()