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

Fix buffer read for windows style newlines #67

Merged
merged 8 commits into from
Aug 6, 2024
Merged

Conversation

tspence
Copy link
Owner

@tspence tspence commented Aug 6, 2024

It looks like after version 3.1.1, a subtle bug got into place for this code when using DOS newlines. It was possible for one chunk to end with a \r character and the next chunk to begin with a \n character, and the position tracker would lose the \r.

This PR adds a test thanks to @joelverhagen for the issue.

Additionally, added escape clause for the CSV state machine for issue reported by @wvdvegt.

@tspence
Copy link
Owner Author

tspence commented Aug 6, 2024

This PR addresses #63 and #62

Copy link

sonarcloud bot commented Aug 6, 2024

@tspence tspence merged commit 4355ed8 into main Aug 6, 2024
2 checks passed
@tspence tspence deleted the tspence/fix-buffer-read branch August 6, 2024 15:41
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

Successfully merging this pull request may close these issues.

1 participant