mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
feat: add encoding hint for file loading in commands
This commit is contained in:
parent
6cec44e402
commit
2af48e159c
1 changed files with 1 additions and 0 deletions
|
@ -1252,6 +1252,7 @@ class Commands:
|
||||||
self.io.tool_error("Please provide a filename containing commands to load.")
|
self.io.tool_error("Please provide a filename containing commands to load.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
#ai use io.encoding, ignore decode errs!
|
||||||
try:
|
try:
|
||||||
with open(args.strip(), "r") as f:
|
with open(args.strip(), "r") as f:
|
||||||
commands = f.readlines()
|
commands = f.readlines()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue