diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | ext/curses/curses.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -3,6 +3,8 @@ Thu Dec 4 13:56:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org> * 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@iDaemons.org> 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); |