diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-03-22 13:51:08 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-03-22 13:51:08 +0100 |
commit | a454c5d24632cac110fd36f2cdd3e7402069074f (patch) | |
tree | 4af36612a70f396de17c16e80511dfc9417416c1 /grunt.js | |
parent | a00e7f3c8238a5a944d13d4df6745653fed766b7 (diff) | |
download | jquery-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.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" ); |