update: cr读取patch文件指定编码

This commit is contained in:
zhanglei 2024-08-08 20:39:33 +08:00
parent 4881000628
commit d727939492

View file

@ -85,7 +85,7 @@ class CodeReview:
if pre:
patch_file_content = pre.text
else:
async with aiofiles.open(patch_path) as f:
async with aiofiles.open(patch_path, encoding="utf-8") as f:
patch_file_content = await f.read()
await EditorReporter().async_report(patch_path)