Skip to content

Change Windows newline detection to occur on all platforms#320

Merged
jondegenhardt merged 1 commit intoeBay:masterfrom
jondegenhardt:unix-newlines-on-all-platforms
Oct 10, 2020
Merged

Change Windows newline detection to occur on all platforms#320
jondegenhardt merged 1 commit intoeBay:masterfrom
jondegenhardt:unix-newlines-on-all-platforms

Conversation

@jondegenhardt
Copy link
Copy Markdown
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