github / github/copilot-cli

When files encoded in Windows 1252 are edited, Copilot changes the encoding to UTF-8.

未关闭
#3,604 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。