summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-31 14:59:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-31 14:59:19 +0000
commit54bd85d19d5af9cb5b5e9525d301c392a12941f8 (patch)
tree37744e8ec75d0b54512cbdf3091362f574fbe63e /lib
parent6cf00e15f87236d79eff6092b91bb71a77f2c590 (diff)
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
Diffstat (limited to 'lib')
-rw-r--r--lib/resolv.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb
index 08bfde5..3b7ab2a 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