aboutsummaryrefslogtreecommitdiffstats
path: root/ext/curses
diff options
context:
space:
mode:
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 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);