[BUG] Has a strange aversion to curly quotes
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: <!-- output of
claude --version--> 1.0.53 - Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04--> macOS 15.5
- Terminal: <!-- e.g. iTerm2, Terminal App--> Terminal app
Bug Description
<!-- A clear and concise description of the bug-->
CC has a weird aversion to curly quotes. When dealing with quote escaping of any kind, it really wants to convert curly quotes to straight quotes even though that's counterproductive. And if asked to create strings with curly quotes it will instead use straight quotes.
Steps to Reproduce
1.
Make a new file "famous-quotes.txt" with several famout quotes from historical figures. IMPORTANT: always use curly quotes, not straight quotes.
Expected Behavior
Curly quotes...
Actual Behavior
$ cat famous-quotes.txt
Famous Quotes from Historical Figures
"The only way to do great work is to love what you do." — Steve Jobs
"In the end, we will remember not the words of our enemies, but the silence of our friends." — Martin Luther King Jr.
...
Additional Context
This isn't just a curiosity. I have some complicated quote escaping code that keeps getting messed up by CC wanting to do weird things with curly quotes.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗