When files encoded in Windows 1252 are edited, Copilot changes the encoding to UTF-8.
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 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