aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rexml/output.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-30 12:10:56 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-30 12:10:56 +0000
commit994f066f76857a781f8819b8da2c2aeceedbf87b (patch)
treed89e9bcf6ac8d558367f888919de0c4894224063 /lib/rexml/output.rb
parent767fe5170d97461be5c79936b467dee3d4eb7179 (diff)
downloadruby-994f066f76857a781f8819b8da2c2aeceedbf87b.tar.gz
* lib/rexml/encoding.rb: use Ruby native encoding mechnism. [ruby-dev:42464]
* lib/rexml/encodings/: remove. * lib/rexml/document.rb, lib/rexml/formatters/default.rb, lib/rexml/output.rb, lib/rexml/parseexception.rb, lib/rexml/parsers/baseparser.rb, lib/rexml/source.rb, lib/rexml/xmldecl.rb: use Ruby's native Encoding object. * test/rexml/, test/rss/: follow the above encoding chagnes. * NEWS: add REXML's incompatible change about encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/output.rb')
-rw-r--r--lib/rexml/output.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/output.rb b/lib/rexml/output.rb
index b7f17b9dff..752f6e1d40 100644
--- a/lib/rexml/output.rb
+++ b/lib/rexml/output.rb
@@ -10,7 +10,7 @@ module REXML
@output = real_IO
self.encoding = encd
- @to_utf = encd == UTF_8 ? false : true
+ @to_utf = (@encoding != ::Encoding::UTF_8)
end
def <<( content )