[ruby-cvs:68065] nobu:r60884 (trunk): io.c: read BOM only for reading

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Nov 23 16:10:56 JST 2017


nobu	2017-11-23 16:10:56 +0900 (Thu, 23 Nov 2017)

  New Revision: 60884

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

  Log:
    io.c: read BOM only for reading
    
    * io.c (io_strip_bom): just abandon detecting UTF encoding by BOM
      unless opened for reading.

  Modified files:
    trunk/io.c
    trunk/test/ruby/test_io_m17n.rb


More information about the ruby-cvs mailing list