ruby-changes:37003
From: nobu <ko1@a...>
Date: Wed, 31 Dec 2014 23:59:36 +0900 (JST)
Subject: [ruby-changes:37003] nobu:r49084 (trunk): resolv.rb: String#b
nobu 2014-12-31 23:59:19 +0900 (Wed, 31 Dec 2014) New Revision: 49084 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49084 Log: resolv.rb: String#b * lib/resolv.rb (Resolv::DNS::Label::Str#initialize): use String#b. Modified files: trunk/lib/resolv.rb Index: lib/resolv.rb =================================================================== --- lib/resolv.rb (revision 49083) +++ lib/resolv.rb (revision 49084) @@ -1172,7 +1172,7 @@ class Resolv https://github.com/ruby/ruby/blob/trunk/lib/resolv.rb#L1172 @string = string # case insensivity of DNS labels doesn't apply non-ASCII characters. [RFC 4343] # This assumes @string is given in ASCII compatible encoding. - @downcase = string.dup.force_encoding('ASCII-8BIT').downcase + @downcase = string.b.downcase end attr_reader :string, :downcase -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/