Merge pull request #1364 from koron/write-in-binary-mode

use binary mode when writing file.
This commit is contained in:
Parker Moore 2013-08-07 08:12:27 -07:00
commit 826293ebe3
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ module Jekyll
def write(dest)
path = destination(dest)
FileUtils.mkdir_p(File.dirname(path))
File.open(path, 'w') do |f|
File.open(path, 'wb') do |f|
f.write(self.output)
end
end