github / github/copilot-cli

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

オープン
#308 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:tools
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。