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

* lib/cgi.rb (CGI::NEEDS_BINMODE): check if O_BINARY is defined.

[ruby-core:29922]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-05-02 04:39:33 +00:00
parent b2f0b3342c
commit f6a67b6760
2 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,7 @@
Sun May 2 08:54:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
Sun May 2 13:39:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/cgi.rb (CGI::NEEDS_BINMODE): check if O_BINARY is defined.
[ruby-core:29922]
* lib/cgi.rb (CGI::NEEDS_BINMODE): check if O_BINARY value instead
of fragile check by platform name.

View file

@ -286,7 +286,7 @@ class CGI
REVISION = '$Id$' #:nodoc:
NEEDS_BINMODE = File::BINARY != 0
NEEDS_BINMODE = !!defined?(File::BINARY)
# Path separators in different environments.
PATH_SEPARATOR = {'UNIX'=>'/', 'WINDOWS'=>'\\', 'MACINTOSH'=>':'}