Project

General

Profile

« Previous | Next » 

Revision 2f7290d4

Added by shirosaki about 12 years ago

  • io.c (rb_io_eof): use eof() instead of io_fillbuf(). It's because
    io_unread() doesn't work properly when reading CRLF with read(length)
    and mode 'r'.
    [ruby-core:44189][Bug #6271]

  • test/ruby/test_io_m17n.rb (TestIO_M17N#test_read_crlf_and_eof):
    test for above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e