From a454c5d24632cac110fd36f2cdd3e7402069074f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=CC=88rn=20Zaefferer?= Date: Thu, 22 Mar 2012 13:51:08 +0100 Subject: [PATCH] Build/grunt: Use ascii encoding when reading files for digesting --- grunt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grunt.js b/grunt.js index 2004a2773..e2d9ebc22 100644 --- a/grunt.js +++ b/grunt.js @@ -395,7 +395,7 @@ task.registerMultiTask( "md5", "Create list of md5 hashes for CDN uploads", func var hashes = []; file.expand( dir + "**/*" ).forEach(function( fileName ) { var hash = crypto.createHash( "md5" ); - hash.update( file.read( fileName ) ); + hash.update( file.read( fileName, 'ascii' ) ); hashes.push( fileName.replace( dir, "" ) + " " + hash.digest( "hex" ) ); }); file.write( this.file.dest, hashes.join( "\n" ) + "\n" ); -- 2.39.5