diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-21 05:49:42 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-21 05:49:42 +0000 |
| commit | 62a31ee69e1830dca71a07bdc960d6c027fbb933 (patch) | |
| tree | ea2538b66676615c3bea6798deef47b4739f7da4 | |
| parent | 31e7747b6bcd6e13a60848f51dcd71d154778d67 (diff) | |
| download | ruby-62a31ee69e1830dca71a07bdc960d6c027fbb933.tar.gz ruby-62a31ee69e1830dca71a07bdc960d6c027fbb933.tar.xz ruby-62a31ee69e1830dca71a07bdc960d6c027fbb933.zip | |
* io.c (argf_set_encoding): uses current_file after check if next
input is available.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | io.c | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -1,7 +1,7 @@ -Thu Feb 21 14:47:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> +Thu Feb 21 14:49:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> - * io.c (argf_set_encoding): uses current_file after check for next - input. + * io.c (argf_set_encoding): uses current_file after check if next + input is available. Thu Feb 21 11:10:49 2008 NARUSE, Yui <naruse@ruby-lang.org> @@ -6103,7 +6103,7 @@ argf_set_encoding(int argc, VALUE *argv, VALUE io) { rb_io_t *fptr; - if (next_argv()) { + if (!next_argv()) { rb_raise(rb_eArgError, "no stream to set encoding"); } rb_io_set_encoding(argc, argv, current_file); |
