Fix handling of EOF in 'c' csv parser
Fixes GH #10728
fixes #10548.

Also fixes:
- '\r' followed by EOF should be considered a blank line
- Escape character followed by EOF should produce an exception
- Line containing only whitespace should be skipped if `skip_blank_lines` and `delim_whitespace` are both `True`
