Skip to content

Commit

Permalink
Found some places that needed to read files with utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Young committed Jan 13, 2012
1 parent 3d48842 commit d2862dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions lib/cli_tools.js
Expand Up @@ -123,7 +123,7 @@ module.exports = {
* @return {String}
*/
defaultLayout: function() {
return fs.readFileSync(__dirname + '/assets/default.jade');
return fs.readFileSync(__dirname + '/assets/default.jade', 'utf8');
},

/**
Expand All @@ -132,7 +132,7 @@ module.exports = {
* @return {String}
*/
defaultPostLayout: function() {
return fs.readFileSync(__dirname + '/assets/post.jade');
return fs.readFileSync(__dirname + '/assets/post.jade', 'utf8');
},

/**
Expand All @@ -141,7 +141,7 @@ module.exports = {
* @return {String}
*/
defaultClientJavaScript: function() {
return fs.readFileSync(__dirname + '/assets/site.js');
return fs.readFileSync(__dirname + '/assets/site.js', 'utf8');
},

/**
Expand All @@ -150,7 +150,7 @@ module.exports = {
* @return {String}
*/
defaultTags: function() {
return fs.readFileSync(__dirname + '/assets/tags.jade');
return fs.readFileSync(__dirname + '/assets/tags.jade', 'utf8');
},

/**
Expand All @@ -177,7 +177,7 @@ module.exports = {
* @return {String}
*/
defaultStylus: function() {
return fs.readFileSync(__dirname + '/assets/screen.styl');
return fs.readFileSync(__dirname + '/assets/screen.styl', 'utf8');
},

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/config.js
Expand Up @@ -28,7 +28,7 @@ function readConfigFile(file) {
}

try {
var data = fs.readFileSync(file).toString();
var data = fs.readFileSync(file, 'utf8');
return applyDefaults(JSON.parse(data));
} catch(exception) {
if (exception.code === 'EBADF') {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{ "name": "pop"
, "description": "A static website and blog generator"
, "version": "0.1.4"
, "version": "0.1.5"
, "url": "http://popjs.com"
, "author": "Alex R. Young <alex@helicoid.net>"
, "engines": ["node >= 0.4.7"]
Expand Down

0 comments on commit d2862dc

Please sign in to comment.