From 021fbc533f4dc408165d7587591fd5ced5a4f92f Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 13 Jun 2013 08:34:26 -0700 Subject: [PATCH] Specify utf8 encoding to fs.readFileSync() --- src/stdlib/fs-utils.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdlib/fs-utils.coffee b/src/stdlib/fs-utils.coffee index 6d2878d7c..19c48de31 100644 --- a/src/stdlib/fs-utils.coffee +++ b/src/stdlib/fs-utils.coffee @@ -108,7 +108,7 @@ module.exports = # Open, read, and close a file, returning the file's contents. read: (filePath) -> - String fs.readFileSync(filePath) + fs.readFileSync(filePath, 'utf8') # Open, write, flush, and close a file, writing the given content. writeSync: (filePath, content) ->