ruby-changes:9950
From: usa <ko1@a...>
Date: Tue, 13 Jan 2009 18:21:47 +0900 (JST)
Subject: [ruby-changes:9950] Ruby:r21491 (trunk): * io.c (rb_io_initialize): workaround for Windows.
usa 2009-01-13 18:21:14 +0900 (Tue, 13 Jan 2009) New Revision: 21491 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21491 Log: * io.c (rb_io_initialize): workaround for Windows. [ruby-dev:37686] (also see [ruby-dev:37721]) Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 21490) +++ ChangeLog (revision 21491) @@ -1,3 +1,8 @@ +Tue Jan 13 18:19:49 2009 NAKAMURA Usaku <usa@r...> + + * io.c (rb_io_initialize): workaround for Windows. [ruby-dev:37686] + (also see [ruby-dev:37721]) + Tue Jan 13 17:29:02 2009 Nobuyoshi Nakada <nobu@r...> * enc/trans/make_transdb.rb (converters): should not depend on the Index: io.c =================================================================== --- io.c (revision 21490) +++ io.c (revision 21491) @@ -5963,6 +5963,12 @@ fp->encs = convconfig; clear_codeconv(fp); io_check_tty(fp); + if (fileno(stdin) == fd) + fp->stdio_file = stdin; + else if (fileno(stdout) == fd) + fp->stdio_file = stdout; + else if (fileno(stderr) == fd) + fp->stdio_file = stderr; return io; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/