mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/readline/readline.c (readline_readline): changed the message
of IOError to 'closed stdin' from 'stdin closed' if stdin was closed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cfb8e8301e
commit
74ea7d93c1
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Fri Dec 12 19:13:43 2008 TAKAO Kouji <kouji@takao7.net>
|
||||
|
||||
* ext/readline/readline.c (readline_readline): changed the message
|
||||
of IOError to 'closed stdin' from 'stdin closed' if stdin was
|
||||
closed.
|
||||
|
||||
Fri Dec 12 19:00:49 2008 TAKAO Kouji <kouji@takao7.net>
|
||||
|
||||
* ext/readline/readline.c: used the ExportStringValue macro
|
||||
|
|
|
@ -218,7 +218,7 @@ readline_readline(int argc, VALUE *argv, VALUE self)
|
|||
prompt = RSTRING_PTR(tmp);
|
||||
}
|
||||
|
||||
if (!isatty(0) && errno == EBADF) rb_raise(rb_eIOError, "stdin closed");
|
||||
if (!isatty(0) && errno == EBADF) rb_raise(rb_eIOError, "closed stdin");
|
||||
|
||||
buff = (char*)rb_protect((VALUE(*)_((VALUE)))readline, (VALUE)prompt,
|
||||
&status);
|
||||
|
|
Loading…
Reference in a new issue