mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Specify utf8 encoding to fs.readFileSync()
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user