tipr/bagit

tagmanifest checksums calculated on Windows are incorrect

Opened this issue · 0 comments

Checksums for manifest files are calculated incorrectly because the file is read with line-ending conversion. To fix this, just use File.open(f,"rb") instead of the default File.open(f) where mode defaults to r

data = File.open(f, &:read)