summaryrefslogtreecommitdiff
path: root/lib/rexml
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-03 05:43:28 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-03 05:43:28 +0000
commit04f41f019a5fda5cc63ef2aadb8acd079a5ee6ec (patch)
tree725e9fb50f24f031d02e49473e6bb6bdfa2c72d1 /lib/rexml
parentac9a8ac62416cfc7c6faf059651b7945cb5e3bf6 (diff)
* lib/rexml/output.rb (REXML::Output#initialize): Use normalized
encoding name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml')
-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 208bb0a..0c6cc7a 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'
+ @to_utf = encoding != 'UTF-8'
if encoding == "UTF-16"
@output << "\ufeff".encode("UTF-16BE")