aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-04 04:57:58 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-04 04:57:58 +0000
commit782576a5199264be07fd9d5be1629eca4aa92c7d (patch)
treec448c7bc115621d95e7587facae74db0cf59140a /ext
parentea465ecda743fdfb1fb007ef951ff352e647102f (diff)
downloadruby-782576a5199264be07fd9d5be1629eca4aa92c7d.tar.gz
* ext/curses/curses.c (window_getch): avoid ISPRINT() macro which
has an issue with OpenSolaris. [ruby-core:20189] * signal.c (ruby_signal): EINVAL from sigaction(2) is not a bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/curses/curses.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c
index 9f4e02ef42..4187478894 100644
--- a/ext/curses/curses.c
+++ b/ext/curses/curses.c
@@ -416,7 +416,7 @@ curses_getch(VALUE obj)
curses_stdscr();
c = getch();
if (c == EOF) return Qnil;
- if (ISPRINT(c)) {
+ if (rb_isprint(c)) {
char ch = (char)c;
return rb_locale_str_new(&ch, 1);