[ruby-cvs:55259] kou:r48109 (trunk): * lib/rexml/source.rb (REXML::IOSource#encoding_updated): Fix a

kou at ruby-lang.org kou at ruby-lang.org
Thu Oct 23 17:23:11 JST 2014


kou	2014-10-23 17:23:10 +0900 (Thu, 23 Oct 2014)

  New Revision: 48109

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48109

  Log:
    * lib/rexml/source.rb (REXML::IOSource#encoding_updated): Fix a
      bug that can't parse XML correctly when
      Encoding.default_internal is different with XML
      encoding. REXML::Source converts XML encoding on read. So IO
      should not convert XML encoding.
      Based on patch by NAKAMURA Usaku.
      [ruby-dev:48686] [Bug #10418]
    
    * test/rexml/test_encoding.rb
      (REXMLTests::EncodingTester#test_parse_utf16_with_utf8_default_internal):
      Add the for the above case.

  Modified files:
    trunk/ChangeLog
    trunk/lib/rexml/source.rb
    trunk/test/rexml/test_encoding.rb


More information about the ruby-cvs mailing list