logoalt Hacker News

skywhoppertoday at 12:06 PM1 replyview on HN

What programming languages try to guess line endings? Or are even aware of them?


Replies

flohofwoetoday at 2:11 PM

Ok, technically not the programming languages, but their stdlibs. On MSVC at least, opening a file in text mode via fopen will translate CRLF into LF on read, and LF into CRLF on write, which has been a neverending source of confusion since at least the 1990s.