* 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:
parent
ac9a8ac624
commit
04f41f019a
@ -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>
|
Sat Nov 3 14:41:17 2012 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
* lib/rexml/output.rb (REXML::Output): Don't output BOM in middle
|
* lib/rexml/output.rb (REXML::Output): Don't output BOM in middle
|
||||||
|
@ -10,7 +10,7 @@ module REXML
|
|||||||
@output = real_IO
|
@output = real_IO
|
||||||
self.encoding = encd
|
self.encoding = encd
|
||||||
|
|
||||||
@to_utf = encd != 'UTF-8'
|
@to_utf = encoding != 'UTF-8'
|
||||||
|
|
||||||
if encoding == "UTF-16"
|
if encoding == "UTF-16"
|
||||||
@output << "\ufeff".encode("UTF-16BE")
|
@output << "\ufeff".encode("UTF-16BE")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user