1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* io.c (next_argv): inherit binmode from $defout.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2003-01-12 09:24:28 +00:00
parent 81dded0d17
commit 7af9f79560
3 changed files with 14 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Sun Jan 12 16:07:17 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* io.c (next_argv): inherit binmode from $defout.
Sat Jan 11 22:50:47 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* ext/dl/lib/dl/win32.rb: compatibility improvement.

7
io.c
View file

@ -2885,6 +2885,12 @@ next_argv()
{
extern VALUE rb_argv;
char *fn;
OpenFile *fptr;
int defout_binmode = 0;
GetOpenFile(rb_defout, fptr);
if (fptr->mode | FMODE_BINMODE)
defout_binmode = 1;
if (init_p == 0) {
if (RARRAY(rb_argv)->len > 0) {
@ -2977,6 +2983,7 @@ next_argv()
prep_path(current_file, fn);
}
if (binmode) rb_io_binmode(current_file);
if (defout_binmode) rb_io_binmode(rb_defout);
}
else {
init_p = 0;

View file

@ -1,11 +1,11 @@
#define RUBY_VERSION "1.8.0"
#define RUBY_RELEASE_DATE "2003-01-11"
#define RUBY_RELEASE_DATE "2003-01-12"
#define RUBY_VERSION_CODE 180
#define RUBY_RELEASE_CODE 20030111
#define RUBY_RELEASE_CODE 20030112
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2003
#define RUBY_RELEASE_MONTH 01
#define RUBY_RELEASE_DAY 11
#define RUBY_RELEASE_DAY 12