[BUG] Claud Edit tool modifies irrelevant line with curly apostrophe
Resolved 💬 3 comments Opened Jun 9, 2025 by dennisgorelik Closed Jan 6, 2026
Environment
- Claude CLI version: 1.0.17 (Claude Code)
- Operating System: Windows 10 (WSL)
- Terminal: Windows Ubuntu
Bug Description
I asked Claude Code to replace "RemoteDeployPjf.ps1" string in my solution files.
Claude correctly replaced "RemoteDeployPjf.ps1", but also updated unrelated line that contained curly apostrophe (’).
Claude told me that it used "Edit" tool to modify files.
Steps to Reproduce
- In your working folder create Sample.txt file with 2 lines:
===
we’ll
Line2
===
- Ask Claude Code:
Please replace "Line2" with "LineTwo"
Expected Behavior
Replaces Line2, but keeps first line as it was
Actual Behavior
Replaces "we'll" with "we�ll" (incorrect)
Replaces "Line2" with "LineTwo" (correct).
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗