1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
kou 2012-11-03 05:43:28 +00:00
parent ac9a8ac624
commit 04f41f019a
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sat Nov 3 14:42:55 2012 Kouhei Sutou <kou@cozmixng.org>
* lib/rexml/output.rb (REXML::Output#initialize): Use normalized
encoding name.
Sat Nov 3 14:41:17 2012 Kouhei Sutou <kou@cozmixng.org>
* lib/rexml/output.rb (REXML::Output): Don't output BOM in middle

View file

@ -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")