mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #5179 from RalphShnelvar/Binary_mode_Window_bug
Binary mode window bug
This commit is contained in:
@@ -16,7 +16,7 @@ class File
|
||||
require 'tempfile' unless defined?(Tempfile)
|
||||
require 'fileutils' unless defined?(FileUtils)
|
||||
|
||||
temp_file = Tempfile.new(basename(file_name), temp_dir)
|
||||
temp_file = Tempfile.new(basename(file_name), temp_dir, :binmode => true)
|
||||
yield temp_file
|
||||
temp_file.close
|
||||
|
||||
|
||||
Reference in New Issue
Block a user