-
Notifications
You must be signed in to change notification settings - Fork 143
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
footerskip Windows/Linux inconsistency #796
Comments
Thanks for the detailed report, let me investigate further. Some immediate thoughts:
|
Ah, so it turns out that the bug in the |
quinnj
added a commit
that referenced
this issue
Feb 28, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's an inconsistency between the behavior of
footerskip
in Windows and Linux. I've labeled three instances of surprising behavior (maybe the first is acceptable) in bold numbers.edit: I'm using Julia 1.5.3 and CSV v0.8.2
Let's look at a sample csv file. Let's say I want to read rows 1, 2, 3. First lets look at a file with
"\n"
line endings.reads rows 1, 2, 3, 4 on Windows and Linux.
1) I'm surprised by this because between the default argument
ignoreemptylines=true
and the description offooterskip
, I would expect this to only read rows 1, 2, 3.To read only the first three rows, set
footerskip=2
but,
2) this only works on Linux! In Windows, I need to set
footerskip=3
which is definitely not the intended behavior.The handling with lines ending
"\r\n"
is different.As before,
CSV.File("foo_rn.csv"; skipto=1, footerskip=1)
reads rows 1, 2, 3, 4 for both Windows and Linux.3) Unlike the
"\n"
line ending, on both Windows and Linuxreads all four rows. Both operating systems need
footerskip=3
to only return the first three rows.The text was updated successfully, but these errors were encountered: