From 54bd85d19d5af9cb5b5e9525d301c392a12941f8 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 31 Dec 2014 14:59:19 +0000 Subject: resolv.rb: String#b * lib/resolv.rb (Resolv::DNS::Label::Str#initialize): use String#b. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/resolv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resolv.rb b/lib/resolv.rb index 08bfde583b..3b7ab2a394 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -1172,7 +1172,7 @@ class Resolv @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 -- cgit v1.2.3