diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-09 22:32:54 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-09 22:32:54 +0000 |
commit | 95b7ffce0fd924277a344613943778663c1ced22 (patch) | |
tree | f83faa32d66fb9cf370a886c158ee4f8b0d29e9f /lib/rexml | |
parent | 662e3cf1f94bb50f6a27568c7526f867956e5b55 (diff) |
* 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
Diffstat (limited to 'lib/rexml')
-rw-r--r-- | lib/rexml/encoding.rb | 4 |
1 files changed, 1 insertions, 3 deletions
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 |