summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-04 05:01:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-04 05:01:12 +0000
commitf0e20a2b1fb82bf5f704329990f3a02f79c687f1 (patch)
tree4b9d26a1e809cf308906788c290d771de4c04e10 /lib
parente5d31c5f4e722af8e0a1b4ea68cb48d9e94a0622 (diff)
downloadruby-f0e20a2b1fb82bf5f704329990f3a02f79c687f1.tar.gz
ruby-f0e20a2b1fb82bf5f704329990f3a02f79c687f1.tar.xz
ruby-f0e20a2b1fb82bf5f704329990f3a02f79c687f1.zip
* lib/rubygems.rb (Gem::binary_mode): binary mode uses binary
encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 8e6d8c963..5faca8695 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -388,7 +388,7 @@ module Gem
# The mode needed to read a file as straight binary.
def self.binary_mode
- @binary_mode ||= RUBY_VERSION > '1.9' ? 'rb:ascii-8bit' : 'rb'
+ 'rb'
end
##