Skip to content

Commit 8f1d6eb

Browse files
author
Caleb Wright
committed
Read JS files as UTF-8. Fixes #198
1 parent 3dedc9d commit 8f1d6eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/jammit/compressor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def concatenate(paths)
246246

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

0 commit comments

Comments
 (0)