diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-19 04:19:06 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-19 04:19:06 +0000 |
commit | 0cbfe8c52474ebf6911a6c1e3f0b8c82885cc07f (patch) | |
tree | 1c4a93d44ef474f7b972682b45ad719f1517e999 | |
parent | e58ec21435c4a0bd6942f8f80e19f4903ece211b (diff) | |
download | ruby-0cbfe8c52474ebf6911a6c1e3f0b8c82885cc07f.tar.gz |
* io.c (rb_io_ungetc): don't fail pushed EOF back.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 2 | ||||
-rw-r--r-- | version.h | 4 |
3 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Tue Feb 19 13:16:08 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp> + + * io.c (rb_io_ungetc): don't fail pushed EOF back. + Mon Feb 18 20:48:40 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp> * pack.c (pack_pack): avoid infinite loop at comment. @@ -1083,7 +1083,7 @@ rb_io_ungetc(io, c) GetOpenFile(io, fptr); rb_io_check_readable(fptr); - if (ungetc(cc, fptr->f) == EOF) + if (ungetc(cc, fptr->f) == EOF && cc != EOF) rb_sys_fail(fptr->path); return Qnil; } @@ -1,4 +1,4 @@ #define RUBY_VERSION "1.7.2" -#define RUBY_RELEASE_DATE "2002-02-18" +#define RUBY_RELEASE_DATE "2002-02-19" #define RUBY_VERSION_CODE 172 -#define RUBY_RELEASE_CODE 20020218 +#define RUBY_RELEASE_CODE 20020219 |