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

Today it's a mistake to open files in "text mode" that translates between line endings, or otherwise save text files with any line ending that isn't LF. Even notepad opens files with LF line ending now. (while we're at it, save all text data in UTF-8 too)

Some "text protocols" have CR LF line endings but this should be relegated to a library; your own code shouldn't deal with this.

And then we can all forget this mistake



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

Search: