You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because pipes are opened in text mode by default, the output for binary types like PNG is mangled.
To fix this issue simply call the following line in the output_and_errors_from_command method:
stdin.binmode
Do this for both ways (Open3#popen3 and IO#popen). Note that it will also affect text types but should really not be an issue because \n is a valid newline for SVG and other text formats.
Regards,
Pascal
The text was updated successfully, but these errors were encountered:
I've modified my local copy like you, so yes it should be ok. Before testing it i have some other issues, i'll create other tickets for them, watch out.
Because pipes are opened in text mode by default, the output for binary types like PNG is mangled.
To fix this issue simply call the following line in the output_and_errors_from_command method:
stdin.binmode
Do this for both ways (Open3#popen3 and IO#popen). Note that it will also affect text types but should really not be an issue because \n is a valid newline for SVG and other text formats.
Regards,
Pascal
The text was updated successfully, but these errors were encountered: