mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
caa55aa13f
commit
38ceb49b79
3 changed files with 12 additions and 5 deletions
|
@ -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
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
|
||||
|
|
Loading…
Reference in a new issue