summaryrefslogtreecommitdiffstats
path: root/ext/curses
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
commitcfcedec53ea55ce940810c90758ff10762cf5020 (patch)
treec448c7bc115621d95e7587facae74db0cf59140a /ext/curses
parent32ea1002888daa8f4362ce5dcd388ffa1dda5101 (diff)
downloadruby-cfcedec53ea55ce940810c90758ff10762cf5020.tar.gz
ruby-cfcedec53ea55ce940810c90758ff10762cf5020.tar.xz
ruby-cfcedec53ea55ce940810c90758ff10762cf5020.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@20482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/curses')
-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 9f4e02ef4..418747889 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);