Codex CLI must respect Windows-style CRLF line endings
Resolved 💬 5 comments Opened Sep 28, 2025 by morganavr Closed Nov 12, 2025
What feature would you like to see?
I run Codex CLI in WSL on Windows 10 PC. My source code uses windows CRLF line endings but Codex changes files to Unix-style LF causing huge diffs.
Here's a typical Codex CLI text output:
I'm noticing the patch changed the file's line endings from Windows-style CRLF to Unix-style LF, causing a huge diff. To keep the repo consistent, I need to revert the file and reapply changes while preserving CRLF endings, probably by tweaking the patch or using a script to maintain line endings.
It would be nice if Code CLI could edit text with Windows-style CRLF from the start without correcting itself later.
Are you interested in implementing this feature?
_No response_
Additional information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗