diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-04 05:52:30 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-04 05:52:30 +0000 |
commit | f5332d6b5e79023c53c530317efe57bc12a92f42 (patch) | |
tree | 57723011061c94c154f3253f929526441a7c79ea | |
parent | 782576a5199264be07fd9d5be1629eca4aa92c7d (diff) | |
download | ruby-f5332d6b5e79023c53c530317efe57bc12a92f42.tar.gz |
* 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
-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); |