* io.c (rb_io_check_readable): Don't clear EOF flag by io_seek.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2003-12-09 03:50:02 +00:00
parent 92517eb4e3
commit 39e04f4aa0
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Tue Dec 9 12:49:22 2003 Tanaka Akira <akr@m17n.org>
* io.c (rb_io_check_readable): Don't clear EOF flag by io_seek.
Tue Dec 9 02:53:55 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/sample/tkalignbox.rb: new sample script

1
io.c
View File

@ -226,6 +226,7 @@ rb_io_check_readable(fptr)
#if NEED_IO_SEEK_BETWEEN_RW
if (((fptr->mode & FMODE_WBUF) ||
(fptr->mode & (FMODE_SYNCWRITE|FMODE_RBUF)) == FMODE_SYNCWRITE) &&
!feof(fptr->f) &&
!fptr->f2) {
io_seek(fptr, 0, SEEK_CUR);
}