ruby-changes:4072
From: ko1@a...
Date: Thu, 21 Feb 2008 14:50:01 +0900 (JST)
Subject: [ruby-changes:4072] nobu - Ruby:r15562 (trunk): * io.c (argf_set_encoding): uses current_file after check if next
nobu 2008-02-21 14:49:42 +0900 (Thu, 21 Feb 2008) New Revision: 15562 Modified files: trunk/ChangeLog trunk/io.c Log: * io.c (argf_set_encoding): uses current_file after check if next input is available. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15562&r2=15561&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/io.c?r1=15562&r2=15561&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 15561) +++ ChangeLog (revision 15562) @@ -1,7 +1,7 @@ -Thu Feb 21 14:47:09 2008 Nobuyoshi Nakada <nobu@r...> +Thu Feb 21 14:49:40 2008 Nobuyoshi Nakada <nobu@r...> - * 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@r...> Index: io.c =================================================================== --- io.c (revision 15561) +++ io.c (revision 15562) @@ -6103,7 +6103,7 @@ { 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/