When files encoded in Windows 1252 are edited, Copilot changes the encoding to UTF-8.
未關閉
area:tools
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
### Describe the bug
Copilot doesn't respect the original file encoding; it makes edits and changes the file format to UTF-8. I haven't found a prompt to prevent this from happening.
What it does, after saving the wrong file, is try to revert the encoding using scripts.
### Affected version
GitHub Copilot CLI 1.0.56.
### Steps to reproduce the behavior
1) Create a Windows1252 file and save in repo;
2) Ask the copilot to make changes.
### Expected behavior
Copilot needs to respect file encoding
### Additional context
_No response_
貢獻指南
研究方向
使用 Windows 1252 檔案在 GitHub Copilot CLI 1.0.56 中重現此問題,然後追蹤 Copilot 修改該檔案時使用的編輯與儲存路徑。確認編輯會保留原始編碼,並根據回報的重現步驟驗證行為;issue 中沒有指定來源檔案或測試。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- shell
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100