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:
parent
662e3cf1f9
commit
95b7ffce0f
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue