Read box file in binary mode for checksum

This commit is contained in:
Bernhard Morgenstern 2014-03-02 02:31:29 +01:00
parent a858257ffe
commit 9f612402e9
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class FileChecksum
def checksum def checksum
digest = @digest_klass.new digest = @digest_klass.new
File.open(@path, "r") do |f| File.open(@path, "rb") do |f|
while !f.eof while !f.eof
begin begin
buf = f.readpartial(BUFFER_SIZE) buf = f.readpartial(BUFFER_SIZE)