rubyzip / rubyzip

Official Rubyzip repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OutputStream.write_buffer returns IOString with default encoding

henkesn opened this issue · comments

In my case this is UTF-8, which produces encoding errors in encoding sensitive use cases.

I'd rather initialize the StringIO.new() in binmode which sets the encoding to ASCI-8BIT and prevents such errors, which are hard to find.