Determine line ending according to line_endings set to the file