diff options
Diffstat (limited to 'lib/resolv.rb')
-rw-r--r-- | lib/resolv.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |