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

ruby-changes:8954

From: matz <ko1@a...>
Date: Thu, 4 Dec 2008 14:54:20 +0900 (JST)
Subject: [ruby-changes:8954] Ruby:r20490 (trunk): * ext/curses/curses.c (curses_getch): no ISPRINT().

matz	2008-12-04 14:52:30 +0900 (Thu, 04 Dec 2008)

  New Revision: 20490

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

  Log:
    * ext/curses/curses.c (curses_getch): no ISPRINT(). [ruby-core:20294]

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 20489)
+++ ChangeLog	(revision 20490)
@@ -3,6 +3,8 @@
 	* ext/curses/curses.c (window_getch): avoid ISPRINT() macro which
 	  has an issue with OpenSolaris.  [ruby-core:20189]
 
+	* ext/curses/curses.c (curses_getch): no ISPRINT(). [ruby-core:20294]
+
 	* signal.c (ruby_signal): EINVAL from sigaction(2) is not a bug.
 
 Thu Dec  4 11:40:56 2008  Akinori MUSHA  <knu@i...>
Index: ext/curses/curses.c
===================================================================
--- ext/curses/curses.c	(revision 20489)
+++ ext/curses/curses.c	(revision 20490)
@@ -1131,7 +1131,7 @@
     GetWINDOW(obj, winp);
     c = wgetch(winp->window);
     if (c == EOF) return Qnil;
-    if (ISPRINT(c)) {
+    if (rb_isprint(c)) {
 	char ch = (char)c;
 
 	return rb_locale_str_new(&ch, 1);

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

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