mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
92517eb4e3
commit
39e04f4aa0
2 changed files with 5 additions and 0 deletions
|
|
@ -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
1
io.c
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue