Let me start by saying I haven't used MS Windows as a developer in more than two decades. So perhaps the rest of my comment is ill-informed regarding best practices for splitting text on line boundaries on MS Windows. In fact, I've found a few articles that talk about this. Such as https://www.theregister.co.uk/2018/05/08/windows_notepad_unix_linux_macos/ from two years ago which notes that Windows Notepad application finally does something reasonable when opening a file with UNIX line endings.
The problem with implementing
The difficulty is how to handle the
I am inclined to recommend that Elvish implement a
It seems like this ultimately boils down to how easily we want Elvish to be able to process arbitrary binary data without using mechanisms like the