trtt Wed, 12 Dec 2018 14:15:14 -0800
I remember the standard library having a module with functions which could tell the default line ending of the current OS. I tried to search for it but couldn't find anything.