1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
matz 2003-07-09 22:32:54 +00:00
parent 662e3cf1f9
commit 95b7ffce0f

View file

@ -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