Eric Wong <e...@80x24.org> wrote: > enable frozen_string_literal for Ruby 2.3+ > > There are likely yet-to-be-discovered bugs in here.
Yep... http://yhbt.net/yahns.git/patch?id=e502a8e21e597895ccb6508b35af1d975c33aeb0 http://yhbt.net/yahns.git/commit?id=e502a8e21e597895ccb6508b35af1d975c33aeb0 avoid StringIO#binmode for the next few years Apparently, StringIO#binmode has been totally broken in 1.9+ and I've always hidden this bug with the combination of an explicit string and magic "encoding: binary" comments :x ref: https://bugs.ruby-lang.org/issues/11945 http://yhbt.net/yahns.git/patch?id=6ea85b061e650cfe348ece306a13d568559fb844 http://yhbt.net/yahns.git/commit?id=6ea85b061e650cfe348ece306a13d568559fb844 extras/exec_cgi: fix frozen string error on slow responses Oops, we need to duplicate our buffer in case the CGI executable returns just the header :x -- unsubscribe: yahns-public+unsubscr...@yhbt.net archive: http://yhbt.net/yahns-public/