Skip to content

Conversation

@meanphil
Copy link

Hi there,

We use open4 to generate various images from raw PDF data via an external command which involves a lot of binary data. We ran into issues with string encoding when using open4, so I've added an option to #popen4, #pork4, and #popen4ext.

The change to #popen4ext has re-ordered it's arguments, and I've also changed the *cmd argument to just cmd (removed the splat), but you can still pass an array of command parameters as the first argument.

I realise this changes the public API, but I thought the encoding options might be of interest. Happy to update with suggestions of different ways to set the encoding but maintain the current public API.

…ipes. This changes the argument order of #popen4_ext
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