[前][次][番号順一覧][スレッド一覧]

ruby-changes:9126

From: kouji <ko1@a...>
Date: Fri, 12 Dec 2008 19:17:17 +0900 (JST)
Subject: [ruby-changes:9126] Ruby:r20663 (trunk): * ext/readline/readline.c (readline_readline): changed the message

kouji	2008-12-12 19:17:01 +0900 (Fri, 12 Dec 2008)

  New Revision: 20663

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20663

  Log:
    * ext/readline/readline.c (readline_readline): changed the message
      of IOError to 'closed stdin' from 'stdin closed' if stdin was
      closed.

  Modified files:
    trunk/ChangeLog
    trunk/ext/readline/readline.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 20662)
+++ ChangeLog	(revision 20663)
@@ -1,3 +1,9 @@
+Fri Dec 12 19:13:43 2008  TAKAO Kouji  <kouji@t...>
+
+	* 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@t...>
 
 	* ext/readline/readline.c: used the ExportStringValue macro
Index: ext/readline/readline.c
===================================================================
--- ext/readline/readline.c	(revision 20662)
+++ ext/readline/readline.c	(revision 20663)
@@ -218,7 +218,7 @@
 	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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]