Skip to content

fread should be more robust in detecting newlines #2248

@st-pasha

Description

@st-pasha

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions