diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 16:30:43 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 16:30:43 +0000 |
commit | 7a9a42b43162a6aa4bb9c5182743ab0c08779269 (patch) | |
tree | d1ad3dc18d08e4bedb9150ef29cfc68ef694991a | |
parent | c7a95634902b09d24a218197a55c6afdbe1ee886 (diff) | |
download | ruby-7a9a42b43162a6aa4bb9c5182743ab0c08779269.tar.gz ruby-7a9a42b43162a6aa4bb9c5182743ab0c08779269.tar.xz ruby-7a9a42b43162a6aa4bb9c5182743ab0c08779269.zip |
* io.c: force CRLF handling if RUBY_TEST_CRLF_ENVIRONMENT is defined.
This is only for testing.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | io.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Aug 26 01:29:26 2008 Tanaka Akira <akr@fsij.org> + + * io.c: force CRLF handling if RUBY_TEST_CRLF_ENVIRONMENT is defined. + This is only for testing. + Tue Aug 26 01:26:31 2008 Tanaka Akira <akr@fsij.org> * transcode.c (str_transcode0): disable newline conversion for ASCII @@ -674,7 +674,7 @@ rb_io_wait_writable(int f) } /* xxx: better way to determine the newline of the platform? */ -#if defined(O_BINARY) && O_BINARY != 0 +#if defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(O_BINARY) && O_BINARY != 0 /* Windows */ # define NEED_NEWLINE_DECODER(fptr) (!(fptr->mode & FMODE_BINMODE)) # define NEED_NEWLINE_ENCODER(fptr) (!(fptr->mode & FMODE_BINMODE)) |