зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
782576a519
Коммит
f5332d6b5e
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче