summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-11 17:58:07 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-11 17:58:07 +0000
commit874dc2562d92a52a5f8795747e512f0deecf9065 (patch)
tree6a587861ec2cf55416d69a1768890bf6c6b4ee60 /ext
parent863989993a44e7a80b083065da194ca10e277321 (diff)
* ext/readline/readline.c (readline_s_set_input): on OS X with editline,
Readline.readline doesn't work because readline_get doesn't use rl_getc. The difference is introduced by r42402 [ruby-dev:47509] [Bug #8644]. Before it rb_io_stdio_file set ifp->stdio_file. Therefore add manually setting the value. * ext/readline/readline.c (readline_s_set_onput): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/readline/readline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index 31a0b94..65f4ea0 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -503,6 +503,7 @@ readline_s_set_input(VALUE self, VALUE input)
rb_sys_fail("fdopen");
}
rl_instream = f;
+ ifp->stdio_file = f;
readline_instream = input;
}
return input;
@@ -557,6 +558,7 @@ readline_s_set_output(VALUE self, VALUE output)
rb_sys_fail("fdopen");
}
rl_outstream = f;
+ ofp->stdio_file = f;
readline_outstream = output;
}
return output;