From 4ffae480a407776d5e2f4f5ee3d126a3817fa8a7 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Wed, 2 Mar 2016 11:00:32 -0800 Subject: [PATCH] utf8 --- lib/hash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hash.js b/lib/hash.js index 8d7d3fd..bc65368 100644 --- a/lib/hash.js +++ b/lib/hash.js @@ -10,7 +10,7 @@ import { readFile } from 'fs-promise'; export default async function hashes (files) { const entries = await Promise.all(files.map(async (name) => { - const data = await readFile(name); + const data = await readFile(name, 'utf8'); return [hash(data), { name, data }]; })); return new Map(entries);