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

Empty file can not be parsed #22

Open
wodadehencou opened this issue Dec 7, 2021 · 1 comment
Open

Empty file can not be parsed #22

wodadehencou opened this issue Dec 7, 2021 · 1 comment

Comments

@wodadehencou
Copy link

I use csv.mmap(filename) to read csv file.

When the input file is empty (size 0), I expect a zero length output.

  if (csv.mmap(fileName)) {
    for (const auto row : csv)  // should not loop

but I get the following error

libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: Invalid argument fish: Job 1, '../bin/mp20_client.exe -in 0....' terminated by signal SIGABRT (Abort)

@bpo217
Copy link

bpo217 commented Feb 3, 2022

I am experiencing the same error.

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

2 participants