Skip to content

End of line delimiter is hardcoded in scala.io.Source #2543

Closed
@scabug

Description

@scabug

In scala.io.Source for the getLine and getLines methods the end of line delimiter is hard coded to '\n'. Not all systems use '\n'. Excel csv export for mac unfortunately uses '\r' for eol, breaking Source.

getLine also apparently chops only the '\n' character, which will leave '\r' when '\r\n' is used for eol.

I suggest a lineDelimiter property on src.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions