yahns Ruby server user/dev discussion
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: yahns-public@yhbt.net
Subject: Re: [PUSHED] frozen_string_literal and copyright updates
Date: Mon, 4 Jan 2016 12:06:31 +0000	[thread overview]
Message-ID: <20160104120631.GA8391@dcvr.yhbt.net> (raw)
In-Reply-To: <20160102224737.GA787@dcvr.yhbt.net>

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

      reply	other threads:[~2016-01-04 12:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-02 22:47 [PUSHED] frozen_string_literal and copyright updates Eric Wong
2016-01-04 12:06 ` Eric Wong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/yahns/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160104120631.GA8391@dcvr.yhbt.net \
    --to=e@80x24.org \
    --cc=yahns-public@yhbt.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/yahns.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).