From 2a42c1bd3a8fcaa59f778070bff0eac60757ced3 Mon Sep 17 00:00:00 2001 From: kou Date: Sun, 28 Oct 2012 12:31:20 +0000 Subject: * lib/rexml/source.rb (REXML::IOSource#initialize): Reduce @line_break initialize code. It should be done only in #encoding=. * lib/rexml/parsers/baseparser.rb: Don't set UTF-16 encoding to source by encoding="UTF-16" in XML declaration because UTF-16XX source encoding should be set in Source#initialize or IOSource#intialize. They should handle BOM. Parser should not consider about it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index ffc27525ba..329f6d6a88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Sun Oct 28 21:25:11 2012 Kouhei Sutou + + * lib/rexml/source.rb (REXML::IOSource#initialize): Reduce + @line_break initialize code. It should be done only in #encoding=. + * lib/rexml/parsers/baseparser.rb: Don't set UTF-16 encoding to + source by encoding="UTF-16" in XML declaration because UTF-16XX + source encoding should be set in Source#initialize or + IOSource#intialize. They should handle BOM. Parser should not + consider about it. + Sun Oct 28 21:18:37 2012 Kouhei Sutou * test/rexml/test_document.rb: Add tests for parsing XML encoded -- cgit v1.2.3