lucas / lucas-nussbaum.net wrote:
> It might be fixed in Ruby 2.2... I don't have an easy way to test. Akira, do you have an easy way to test with Ruby 2.1?
> 
> If it is indeed fixed, it might be worth backporting to 2.1.

It may be fixed in trunk r44497.
Lucas: can you apply on your end and confirm?  Thanks.

commit 5b0fb1aaddad03e111606e0d0eaf8ed9c9f7b0b6
Author: nobu <nobu / b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date:   Sat Jan 4 10:15:31 2014 +0000

    socket.c: format flags
    
    * ext/socket/socket.c (rsock_syserr_fail_host_port): use format flags,
      '+' to inspect, ' ' to quote unprintables.
    * ext/socket/socket.c (rsock_syserr_fail_path): ditto.
    * ext/socket/socket.c (rsock_syserr_fail_raddrinfo): ditto.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e