Skip to content
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

fread should be more robust in detecting newlines #2248

Closed
st-pasha opened this issue Jul 6, 2017 · 1 comment
Closed

fread should be more robust in detecting newlines #2248

st-pasha opened this issue Jul 6, 2017 · 1 comment

Comments

@st-pasha
Copy link
Contributor

st-pasha commented Jul 6, 2017

Fread should read at least several first lines to verify that newlines are consistent.
In issue #1967 there was a report about a file where first line ended with \r\n, while the rest of the file had standard Unix line endings \n. As a result, fread thought that it's a file with several million columns, which does not end well...

Having such a file is possible if for example users concatenates file with headers and file with data and the two files have different line endings (in fact it is even conceivable for a user to concatenate several data files with different line endings).

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

No branches or pull requests

1 participant