summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-02 03:59:50 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-02 03:59:50 +0000
commitdbe75ed4bcd326e8c0aab6a6738f9311e49cd72e (patch)
treeaa4d10621309553f6d8cb9e2ee5c7766c9535099
parent3108dc4b38c05264e7ce3b117b6c00894b76b9fc (diff)
downloadruby-dbe75ed4bcd326e8c0aab6a6738f9311e49cd72e.tar.gz
merge revision(s) 37743: [Backport #7379]
* 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/branches/ruby_1_9_3@40051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--version.h2
-rw-r--r--win32/win32.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 542e71aec1..36fab661de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Apr 2 12:59:35 2013 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 Apr 2 12:56:15 2013 Naohisa Goto <ngotogenome@gmail.com>
* signal.c (ruby_abort): fix typo in r39354 [Bug #5014]
diff --git a/version.h b/version.h
index e0c9901295..feaecd5c39 100644
--- a/version.h
+++ b/version.h
@@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.3"
-#define RUBY_PATCHLEVEL 402
+#define RUBY_PATCHLEVEL 403
#define RUBY_RELEASE_DATE "2013-04-02"
#define RUBY_RELEASE_YEAR 2013
diff --git a/win32/win32.c b/win32/win32.c
index fcefe2c6c7..c35e5462f8 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -5216,7 +5216,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);