diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-03 05:43:28 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-03 05:43:28 +0000 |
commit | 04f41f019a5fda5cc63ef2aadb8acd079a5ee6ec (patch) | |
tree | 725e9fb50f24f031d02e49473e6bb6bdfa2c72d1 | |
parent | ac9a8ac62416cfc7c6faf059651b7945cb5e3bf6 (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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/rexml/output.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sat Nov 3 14:42:55 2012 Kouhei Sutou <[email protected]> + + * lib/rexml/output.rb (REXML::Output#initialize): Use normalized + encoding name. + Sat Nov 3 14:41:17 2012 Kouhei Sutou <[email protected]> * 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") |