From 7983c03a0b5393068c4bc02cfcd36fd589c1bc30 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 29 Jun 2013 20:20:11 -0400 Subject: [PATCH] encode MD5 in default encoding instead of ASCII-8BIT --- lib/rscons/cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rscons/cache.rb b/lib/rscons/cache.rb index ea86386..15fb886 100644 --- a/lib/rscons/cache.rb +++ b/lib/rscons/cache.rb @@ -68,7 +68,7 @@ module Rscons end def calculate_checksum(file) - Digest::MD5.hexdigest(File.read(file)) + Digest::MD5.hexdigest(File.read(file)).encode(__ENCODING__) end end end