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

Change Windows newline detection to occur on all platforms #320

Merged

Conversation

jondegenhardt
Copy link
Contributor

Most of the tsv-utils tools require Unix newlines. These tools check for Windows newlines on Posix platforms using throwIfWindowsNewlineOnUnix. However, these tools generally have trouble with Windows newlines on Windows platforms as well. And, there is no warning to users. This adds detection and user messaging on Windows.

The PR changes Windows newline detection to occur on all platforms. The throwIfWindowsNewlineOnUnix was renamed to throwIfWindowsNewline and the code changed to throw on all all platforms. Callers were changed to call the new function.

This is a step towards getting a Window build that has a fully functioning test suite. See issue #317. Support for Windows newlines can be evaluated after having a fully functioning test suite on Windows.

@jondegenhardt jondegenhardt merged commit 784e813 into eBay:master Oct 10, 2020
@jondegenhardt jondegenhardt deleted the unix-newlines-on-all-platforms branch October 10, 2020 20:25
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