logoalt Hacker News

Grom_PEyesterday at 5:48 PM2 repliesview on HN

On Windows, I've mostly avoided CRLF by configuring text editors and git to use LF, and writing text files in binary mode.

The only places that still forced CRLF were batch files and clipboard.


Replies

wnevetsyesterday at 5:56 PM

> I've mostly avoided CRLF by configuring text editors and git to use LF,

That has been my experience as well. I can't remember the last time I had an issue related to CRLF.

show 1 reply
layer8yesterday at 8:32 PM

A lot of tooling that generates or transform text-like files (e.g. XML) outputs native line endings, which in case of Windows is CRLF. Depending on what you do, it’s almost impossible to avoid that.