зеркало из https://github.com/github/ruby.git
* io.c: test _WIN32 for CRLF platform. (cygwin defines O_BINARY.)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
5c6d113a4b
Коммит
08911df311
|
@ -1,3 +1,7 @@
|
|||
Tue Aug 26 01:48:31 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* io.c: test _WIN32 for CRLF platform. (cygwin defines O_BINARY.)
|
||||
|
||||
Tue Aug 26 01:29:26 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* io.c: force CRLF handling if RUBY_TEST_CRLF_ENVIRONMENT is defined.
|
||||
|
|
3
io.c
3
io.c
|
@ -673,8 +673,7 @@ rb_io_wait_writable(int f)
|
|||
}
|
||||
}
|
||||
|
||||
/* xxx: better way to determine the newline of the platform? */
|
||||
#if defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(O_BINARY) && O_BINARY != 0
|
||||
#if defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(_WIN32)
|
||||
/* Windows */
|
||||
# define NEED_NEWLINE_DECODER(fptr) (!(fptr->mode & FMODE_BINMODE))
|
||||
# define NEED_NEWLINE_ENCODER(fptr) (!(fptr->mode & FMODE_BINMODE))
|
||||
|
|
Загрузка…
Ссылка в новой задаче