summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-09 22:32:54 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-09 22:32:54 +0000
commitc415ba8c6ef8b2f942326c949cc8e1f356204431 (patch)
treef83faa32d66fb9cf370a886c158ee4f8b0d29e9f
parentd5fde88a3b2b1e1c8f27e1cbccd7fdafe82a4d84 (diff)
downloadruby-c415ba8c6ef8b2f942326c949cc8e1f356204431.tar.gz
ruby-c415ba8c6ef8b2f942326c949cc8e1f356204431.tar.xz
ruby-c415ba8c6ef8b2f942326c949cc8e1f356204431.zip
* lib/rexml/encoding.rb (encoding=): oops, shouldn't have
checked in without Sean's concent. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/rexml/encoding.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rexml/encoding.rb b/lib/rexml/encoding.rb
index 2d62e49fa..06385d8d5 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