Skip to content

Commit

Permalink
* io.c (rb_io_check_readable): Don't clear EOF flag by io_seek.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
akr committed Dec 9, 2003
1 parent 92517eb commit 39e04f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Tue Dec 9 12:49:22 2003 Tanaka Akira <[email protected]>

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

Tue Dec 9 02:53:55 2003 Hidetoshi NAGAI <[email protected]>

* ext/tk/sample/tkalignbox.rb: new sample script
Expand Down
1 change: 1 addition & 0 deletions io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 39e04f4

Please sign in to comment.