summaryrefslogtreecommitdiff
path: root/lib/rubygems/source_index.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/source_index.rb6
1 files changed, 3 insertions, 3 deletions
@@ -85,10 +85,10 @@ class Gem::SourceIndex
def load_specification(file_name)
return nil unless file_name and File.exist? file_name
- spec_code = if !defined?(Encoding) then
- File.read file_name
- else
File.read file_name, :encoding => 'UTF-8'
end.untaint
begin