Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* 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]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit 0c3d96756ab470c71f3da579513a767f27fc08be 1 parent bd0931f
@unak unak authored
Showing with 7 additions and 1 deletion.
  1. +6 −0 ChangeLog
  2. +1 −1  win32/win32.c
View
6 ChangeLog
@@ -1,3 +1,9 @@
+Tue Nov 20 12:05:15 2012 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * 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@ruby-lang.org>
* configure.in (--enable-dtrace): always call RUBY_DTRACE_BSD_BROKEN
View
2  win32/win32.c
@@ -5902,7 +5902,7 @@ rb_w32_read(int fd, void *buf, size_t size)
}
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);
Please sign in to comment.
Something went wrong with that request. Please try again.