Skip to content

Commit

Permalink
Read JS files as UTF-8. Fixes documentcloud#198
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Wright committed Sep 6, 2011
1 parent 3dedc9d commit 8f1d6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jammit/compressor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def concatenate(paths)

# `File.read`, but in "binary" mode.
def read_binary_file(path)
File.open(path, 'rb') {|f| f.read }
File.open(path, 'rb:UTF-8') {|f| f.read }
end
end

Expand Down

0 comments on commit 8f1d6eb

Please sign in to comment.