github / github/copilot-cli

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

Offen
#3,604 1 Kommentar 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:tools
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

### 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_

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Reproduziere das Problem in GitHub Copilot CLI 1.0.56 mit einer Windows-1252-Datei und verfolge anschließend den Bearbeitungs- und Speicherpfad, der verwendet wird, wenn Copilot sie ändert. Bestätige, dass Bearbeitungen die ursprüngliche Kodierung beibehalten, und überprüfe das Verhalten anhand der gemeldeten Reproduktionsschritte; im Issue wird keine Quelldatei und kein Test genannt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.