github / github/copilot-cli

str_replace_editor doesn't preserve the encoding properly for non-ASCII characters.

Aberta
#308 1 comentário 0 reações 0 responsáveis Ver no GitHub
area:tools
Linguagem predominante
Shell
Estrelas
11.2k
Forks
1.9k
Merge médio
14h 16min
PRs com merge (30d)
6

Descrição

### Describe the bug

Run into a issue where "ä" was not encoded properly after edit and shows up as triangle with question mark . Copilot itself reported this to be caused by " str_replace_editor doesn't preserve
the encoding properly for non-ASCII characters."

### Affected version

_No response_

### Steps to reproduce the behavior

1. Ask Copilot to modify C# files with comments if Finnish for example "// Täysi"
2. Copilot does changes which include the comment line
3. "ä" character is corrupted

### Expected behavior

No character corruption

### Additional context

```pwsh
copilot ---version
0.0.341
Commit: 5725358
```

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.