diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-11 10:11:53 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-11 10:11:53 +0000 |
commit | 65a269376f7262212512f29f5ace7d8702b3edf4 (patch) | |
tree | 11b9668991408f08b11e9221e03f59ea631669de | |
parent | 2628f376c9eba77fa7c214bd1bfd68a34dc524da (diff) |
* io.c (remain_size): IO#read returns "" if file.size == 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 3 |
2 files changed, 4 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Thu Apr 11 19:10:37 2002 WATANABE Hirofumi <eban@ruby-lang.org> + + * io.c (remain_size): IO#read returns "" if file.size == 0. + Thu Apr 11 09:31:19 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp> * ext/dl/ptr.c: raise() -> rb_raise(). (Thanks Tetsuya Watanabe) @@ -625,9 +625,6 @@ remain_size(fptr) { off_t pos; - if (st.st_size == 0) { - return 1; /* force EOF */ - } pos = ftello(fptr->f); if (st.st_size > pos && pos >= 0) { siz = st.st_size - pos + 1; |