From 04f41f019a5fda5cc63ef2aadb8acd079a5ee6ec Mon Sep 17 00:00:00 2001 From: kou Date: Sat, 3 Nov 2012 05:43:28 +0000 Subject: * 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 --- ChangeLog | 5 +++++ lib/rexml/output.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0f66fc929c..68343d3c70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Nov 3 14:42:55 2012 Kouhei Sutou + + * lib/rexml/output.rb (REXML::Output#initialize): Use normalized + encoding name. + Sat Nov 3 14:41:17 2012 Kouhei Sutou * lib/rexml/output.rb (REXML::Output): Don't output BOM in middle diff --git a/lib/rexml/output.rb b/lib/rexml/output.rb index 208bb0ade1..0c6cc7a7f8 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") -- cgit v1.2.3