From 216dcd80ffaa233be3f61d7e21eeeb13bad58795 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 15 May 2007 06:01:33 +0000 Subject: [PATCH] * win32/win32.c (init_stdhandle): stderr should be without buffering, but mswin32 use buffering when stderr is not connected to tty. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ version.h | 6 +++--- win32/win32.c | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ce907791a7..cc9988a017 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue May 15 15:01:38 2007 NAKAMURA Usaku + + * win32/win32.c (init_stdhandle): stderr should be without buffering, + but mswin32 use buffering when stderr is not connected to tty. + Mon May 14 02:12:07 2007 Yukihiro Matsumoto * array.c (rb_ary_zip): a.zip(b,c) should return an array, not diff --git a/version.h b/version.h index 7d6f4ba8ec..5656c47878 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-05-14" +#define RUBY_RELEASE_DATE "2007-05-15" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20070514 +#define RUBY_RELEASE_CODE 20070515 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 5 -#define RUBY_RELEASE_DAY 14 +#define RUBY_RELEASE_DAY 15 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; diff --git a/win32/win32.c b/win32/win32.c index 090cf20d0b..663136619f 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1754,6 +1754,7 @@ init_stdhandle(void) stderr->_file = open_null(2); } if (nullfd >= 0 && !keep) close(nullfd); + setvbuf(stderr, NULL, _IONBF, 0); } #else