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 UTF-8 issues with jRuby #462

Merged
merged 1 commit into from
Jul 26, 2017
Merged

Fix UTF-8 issues with jRuby #462

merged 1 commit into from
Jul 26, 2017

Conversation

maxmeyer
Copy link
Member

This is a follow up to #417.

…s non-ASCII characters. I tracked this down to an encoding error reported in childprocess when pumping data from the invoked command to the stdout tempfile. My fix is to set the stdout and stderr output files to be in binmode, and then the string matchers for the output declare that the actual result (read from the tempfiles as binary data) is actually UTF-8. This causes no harm in old JRuby or MRI afaict; my cuke tests for my application pass with this fix in place just like they passed before.
@maxmeyer maxmeyer merged commit 501bbdc into master Jul 26, 2017
@maxmeyer maxmeyer added this to the 1.0.0-alpha.3 milestone Jul 26, 2017
@mvz mvz deleted the feature/fix-utf-8-issue branch November 7, 2017 08:29
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.

2 participants