* io.c (prep_stdio): set binmode only if the file descriptor

is not connected to a terminal on Cygwin.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2003-03-12 07:59:28 +00:00
Родитель caa55aa13f
Коммит 38ceb49b79
3 изменённых файлов: 12 добавлений и 5 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Wed Mar 12 16:48:19 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* io.c (prep_stdio): set binmode only if the file descriptor
is not connected to a terminal on Cygwin.
Tue Mar 11 21:00:59 2003 Minero Aoki <aamine@loveruby.net>
* lib/net/smtp.rb: Digest string wrongly included '\n' when user

6
io.c
Просмотреть файл

@ -2792,8 +2792,10 @@ prep_stdio(f, mode, klass)
MakeOpenFile(io, fp);
#ifdef __CYGWIN__
mode |= O_BINARY;
setmode(fileno(f), O_BINARY);
if (!isatty(fileno(f))) {
mode |= O_BINARY;
setmode(fileno(f), O_BINARY);
}
#endif
fp->f = f;
fp->mode = mode;

Просмотреть файл

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