Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

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


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: