Do not set binmode on output temp files #650
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Let Ruby handle line ending conversion, making use of Aruba easier for Windows users
Details
SpawnProcess used to set binmode on the tempfiles used to capture stdout and stderr. This was done to fix failures on JRuby. This is removed to allow line endings to be handled automatically. The JRuby failures are fixed by setting the encoding on the tempfiles instead.
Motivation and Context
This fixes #614.
How Has This Been Tested?
Basically, by running the test suite on Travis. The original change to binmode was badly tested as well.
Types of changes
Checklist: