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

Force encoding of posix_spawn output #338

Merged
merged 2 commits into from
Sep 11, 2014

Conversation

Razer6
Copy link
Contributor

@Razer6 Razer6 commented Jul 30, 2014

Currently the encoding of the output of POSIX::Spawn::Child.new(*command, :input => target) in https://github.com/github/markup/blob/master/lib/github/markup/command_implementation.rb#L36 is always ASCII-8Bit although the input encoding might be different (e.g.UTF-8`).

This PR forces the encoding of the output of the call to be the same as the input data.

/cc @jacobvosmaer

@jacobvosmaer
Copy link

👍 for fixing this. A test might be nice though?

@Razer6
Copy link
Contributor Author

Razer6 commented Jul 31, 2014

@jacobvosmaer I'll add one in the evening :) Done :)

@bkeepers
Copy link
Contributor

👍 thanks!

bkeepers added a commit that referenced this pull request Sep 11, 2014
Force encoding of posix_spawn output
@bkeepers bkeepers merged commit 8d555c9 into github:master Sep 11, 2014
@Razer6 Razer6 deleted the preserve_encoding branch September 11, 2014 18:06
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.

3 participants