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

ruby-changes:25686

From: usa <ko1@a...>
Date: Tue, 20 Nov 2012 12:07:33 +0900 (JST)
Subject: [ruby-changes:25686] usa:r37743 (trunk): * win32/win32.c (rb_w32_read): Windows 8 fixed one of a bug of console

usa	2012-11-20 12:07:23 +0900 (Tue, 20 Nov 2012)

  New Revision: 37743

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

  Log:
    * win32/win32.c (rb_w32_read): Windows 8 fixed one of a bug of console
      API.
      based on the patch by Heesob Park at [ruby-core:49479] [Bug #7379]

  Modified files:
    trunk/ChangeLog
    trunk/win32/win32.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37742)
+++ ChangeLog	(revision 37743)
@@ -1,3 +1,9 @@
+Tue Nov 20 12:05:15 2012  NAKAMURA Usaku  <usa@r...>
+
+	* win32/win32.c (rb_w32_read): Windows 8 fixed one of a bug of console
+	  API.
+	  based on the patch by Heesob Park at [ruby-core:49479] [Bug #7379]
+
 Tue Nov 20 11:14:33 2012  NARUSE, Yui  <naruse@r...>
 
 	* configure.in (--enable-dtrace): always call RUBY_DTRACE_BSD_BROKEN
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 37742)
+++ win32/win32.c	(revision 37743)
@@ -5902,7 +5902,7 @@
     }
 
     ret = 0;
-    isconsole = is_console(_osfhnd(fd));
+    isconsole = is_console(_osfhnd(fd)) && (osver.dwMajorVersion < 6 || (osver.dwMajorVersion == 6 && osver.dwMinorVersion < 2));
     if (isconsole) {
 	DWORD mode;
 	GetConsoleMode((HANDLE)_osfhnd(fd),&mode);

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

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