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

* ext/socket/socket.c (init_sock): socket is binmode on platforms

which support binmode.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2008-06-24 00:41:38 +00:00
parent 59e103794e
commit 1a13281ab7
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Tue Jun 24 09:40:47 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/socket/socket.c (init_sock): socket is binmode on platforms
which support binmode.
Tue Jun 24 00:21:53 2008 Yusuke Endoh <mame@tsg.ne.jp> Tue Jun 24 00:21:53 2008 Yusuke Endoh <mame@tsg.ne.jp>
* compile.c (iseq_build_from_ary): initialize arg_opts, a patch from * compile.c (iseq_build_from_ary): initialize arg_opts, a patch from

View file

@ -240,6 +240,9 @@ init_sock(VALUE sock, int fd)
MakeOpenFile(sock, fp); MakeOpenFile(sock, fp);
fp->fd = fd; fp->fd = fd;
fp->mode = FMODE_READWRITE|FMODE_DUPLEX; fp->mode = FMODE_READWRITE|FMODE_DUPLEX;
#if defined(_WIN32) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) || defined(__EMX__)
fp->mode |= FMODE_BINMODE;
#endif
if (do_not_reverse_lookup) { if (do_not_reverse_lookup) {
fp->mode |= FMODE_NOREVLOOKUP; fp->mode |= FMODE_NOREVLOOKUP;
} }