When files encoded in Windows 1252 are edited, Copilot changes the encoding to UTF-8.
- Langage dominant
- Shell
- Étoiles
- 11.2k
- Forks
- 1.9k
- Merge moyen
- 14 h 16 min
- PR mergées (30 j)
- 6
Description
### 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_
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduisez le problème dans GitHub Copilot CLI 1.0.56 avec un fichier Windows 1252, puis suivez le chemin d’édition et d’enregistrement utilisé lorsque Copilot le modifie. Confirmez que les modifications préservent l’encodage d’origine et vérifiez le comportement par rapport aux étapes de reproduction indiquées ; aucun fichier source ni test n’est nommé dans l’issue.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- shell
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100