[前][次][番号順一覧][スレッド一覧]

ruby-changes:9944

From: yugui <ko1@a...>
Date: Tue, 13 Jan 2009 12:37:40 +0900 (JST)
Subject: [ruby-changes:9944] Ruby:r21485 (trunk): * lib/irb/input-method.rb: IRB did not prompt for MSwin32.

yugui	2009-01-13 12:37:15 +0900 (Tue, 13 Jan 2009)

  New Revision: 21485

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21485

  Log:
    * lib/irb/input-method.rb: IRB did not prompt for MSwin32.
      [ruby-dev:37686].
      Patch by arton <artonx AT yahoo.co.jp>.

  Modified files:
    trunk/ChangeLog
    trunk/lib/irb/input-method.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21484)
+++ ChangeLog	(revision 21485)
@@ -1,3 +1,9 @@
+Tue Jan 13 11:58:04 2009  Yuki Sonoda (Yugui)  <yugui@y...>
+
+	* lib/irb/input-method.rb: IRB did not prompt for MSwin32.
+	  [ruby-dev:37686].
+	  Patch by arton <artonx AT yahoo.co.jp>.
+
 Tue Jan 13 12:10:42 2009  NAKAMURA Usaku  <usa@r...>
 
 	* ext/socket/{getaddrinfo,getnameinfo}.c: need to include ws2tcpip.h
Index: lib/irb/input-method.rb
===================================================================
--- lib/irb/input-method.rb	(revision 21484)
+++ lib/irb/input-method.rb	(revision 21485)
@@ -45,7 +45,7 @@
       @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 @@
 	@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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]