From: "xRaich[o]2x" Date: 2008-12-21T03:56:37+09:00 Subject: [ruby-core:20726] OpenSolaris Patch for 1.9 Hi, I just wrote a little patch for rub 1.9.1-preview2 so it compiles under the recent opensolaris release. I don't know if this is any good since it's just a quick hack. Would be cool if someone could review this. --- ext/curses/curses.c Tue Nov 11 12:00:39 2008 +++ ext/curses/curses.c Sat Dec 20 19:31:12 2008 @@ -416,7 +416,11 @@ curses_stdscr(); c = getch(); if (c == EOF) return Qnil; +#if defined( __sun) + if (isprint(c)) { +#else if (ISPRINT(c)) { +#endif char ch = (char)c; return rb_locale_str_new(&ch, 1); @@ -1110,7 +1114,11 @@ GetWINDOW(obj, winp); c = wgetch(winp->window); if (c == EOF) return Qnil; +#if defined(__sun) + if (isprint(c)) { +#else if (ISPRINT(c)) { +#endif char ch = (char)c; return rb_locale_str_new(&ch, 1); Regards, Bj��rn