From f5332d6b5e79023c53c530317efe57bc12a92f42 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 4 Dec 2008 05:52:30 +0000 Subject: [PATCH] * ext/curses/curses.c (curses_getch): no ISPRINT(). [ruby-core:20294] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 2 ++ ext/curses/curses.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e0f55f38a9..e9ed4baaf4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ Thu Dec 4 13:56:31 2008 Yukihiro Matsumoto * 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 diff --git a/ext/curses/curses.c b/ext/curses/curses.c index 4187478894..b16d824169 100644 --- a/ext/curses/curses.c +++ b/ext/curses/curses.c @@ -1131,7 +1131,7 @@ window_getch(VALUE obj) 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);