Skip to content

Commit

Permalink
fix encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Sep 5, 2012
1 parent aa1c8d7 commit 892f6d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/appdata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def self.get_distribution dist="factory", flavour="oss"
end
zipfilename = File.join( Rails.root.join('tmp'), "appdata-" + dist + ".xml.gz" )
filename = File.join( Rails.root.join('tmp'), "appdata-" + dist + ".xml" )
File.open(zipfilename, "w+") do |f|
File.open(zipfilename, "w+", :encoding => 'ascii-8bit') do |f|
f.write(appdata.body) if appdata
end
`gunzip -f #{zipfilename}`
Expand Down

0 comments on commit 892f6d5

Please sign in to comment.