use binary mode when writing file.

This commit is contained in:
MURAOKA Taro 2013-07-30 21:35:02 +09:00
parent 51cf55ebec
commit 8a155e0a50
1 changed files with 1 additions and 1 deletions

View File

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