From 6bf12d27a1af3c876216f28b489a29ca5217e94a Mon Sep 17 00:00:00 2001 From: yugui Date: Tue, 13 Jan 2009 03:37:15 +0000 Subject: * lib/irb/input-method.rb: IRB did not prompt for MSwin32. [ruby-dev:37686]. Patch by arton . git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/input-method.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 407012aa8..0b22d9ca7 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -45,7 +45,7 @@ module IRB @line_no = 0 @line = [] @stdin = IO.open(STDIN.to_i, :external_encoding => IRB.conf[:LC_MESSAGES].encoding, :internal_encoding => "-") - @stdout = IO.open(STDOUT.to_i, :external_encoding => IRB.conf[:LC_MESSAGES].encoding, :internal_encoding => "-") + @stdout = IO.open(STDOUT.to_i, 'w', :external_encoding => IRB.conf[:LC_MESSAGES].encoding, :internal_encoding => "-") end def gets @@ -106,7 +106,7 @@ module IRB @eof = false @stdin = IO.open(STDIN.to_i, :external_encoding => IRB.conf[:LC_MESSAGES].encoding, :internal_encoding => "-") - @stdout = IO.open(STDOUT.to_i, :external_encoding => IRB.conf[:LC_MESSAGES].encoding, :internal_encoding => "-") + @stdout = IO.open(STDOUT.to_i, 'w', :external_encoding => IRB.conf[:LC_MESSAGES].encoding, :internal_encoding => "-") end def gets -- cgit