[ruby-cvs:70077] normal:r62967 (trunk): io.c: IO#write without args returns 0

normal at ruby-lang.org normal at ruby-lang.org
Wed Mar 28 17:38:21 JST 2018


normal	2018-03-28 17:38:21 +0900 (Wed, 28 Mar 2018)

  New Revision: 62967

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

  Log:
    io.c: IO#write without args returns 0
    
    This is consistent with other implementations of .write
    in openssl and stringio.
    
    * io.c (io_write_m): return 0 on argc == 0
      [ruby-core:86285] [Bug #14338]

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


More information about the ruby-cvs mailing list