aboutsummaryrefslogtreecommitdiffstats
path: root/grunt.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-03-22 13:51:08 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-03-22 13:51:08 +0100
commita454c5d24632cac110fd36f2cdd3e7402069074f (patch)
tree4af36612a70f396de17c16e80511dfc9417416c1 /grunt.js
parenta00e7f3c8238a5a944d13d4df6745653fed766b7 (diff)
downloadjquery-ui-a454c5d24632cac110fd36f2cdd3e7402069074f.tar.gz
jquery-ui-a454c5d24632cac110fd36f2cdd3e7402069074f.zip
Build/grunt: Use ascii encoding when reading files for digesting
Diffstat (limited to 'grunt.js')
-rw-r--r--grunt.js2
1 files changed, 1 insertions, 1 deletions
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" );