Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
scabug opened this issue Oct 29, 2009 · 2 comments
Closed

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

scabug opened this issue Oct 29, 2009 · 2 comments

Comments

@scabug
Copy link

scabug commented Oct 29, 2009

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.

@scabug
Copy link
Author

scabug commented Oct 29, 2009

Imported From: https://issues.scala-lang.org/browse/SI-2543?orig=1
Reporter: aliix

@scabug
Copy link
Author

scabug commented Oct 29, 2009

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant