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

Do not set binmode on output temp files #650

Merged
merged 1 commit into from
Jun 29, 2019
Merged

Conversation

mvz
Copy link
Contributor

@mvz mvz commented Jun 28, 2019

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (cleanup of codebase without changing any existing functionality)
  • Update documentation

Checklist:

  • I've added tests for my code
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

This removes binmode so Ruby can do its automatic line ending conversion
like it used to. To avoid encoding compatibilities, the encoding on the
temp files is set to 8 bit ascii.
@mvz mvz force-pushed the issue-614-no-binmode-still branch from 905f9c4 to 96c68ba Compare June 29, 2019 16:26
@mvz mvz changed the title Do not set binmode on output files Do not set binmode on output temp files Jun 29, 2019
@mvz mvz marked this pull request as ready for review June 29, 2019 16:31
@mvz mvz merged commit 02ee143 into still Jun 29, 2019
@mvz mvz deleted the issue-614-no-binmode-still branch June 29, 2019 19:57
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