From 95b7ffce0fd924277a344613943778663c1ced22 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 9 Jul 2003 22:32:54 +0000 Subject: * lib/rexml/encoding.rb (encoding=): oops, shouldn't have checked in without Sean's concent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rexml/encoding.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/rexml') diff --git a/lib/rexml/encoding.rb b/lib/rexml/encoding.rb index 2d62e49fac..06385d8d52 100644 --- a/lib/rexml/encoding.rb +++ b/lib/rexml/encoding.rb @@ -21,9 +21,7 @@ module REXML attr_reader :encoding def encoding=( enc ) enc = UTF_8 unless enc - rv = ENCODING_CLAIMS.find{|k,v| /#{v}/i =~ enc } - enc = rv[1] if rv - @encoding = enc + @encoding = enc.upcase require "rexml/encodings/#@encoding" unless @encoding == UTF_8 end -- cgit v1.2.3