Skip to content

Commit 3a52a24

Browse files
committed
Load files for Storage as-is (not using utf8 encoding)
1 parent 2e26fde commit 3a52a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/espruino-cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function setupConfig(Espruino, callback) {
231231
if (fileName=="-")
232232
args.storageContents[storageName] = { code : true };
233233
else {
234-
args.storageContents[storageName] = { data: fs.readFileSync(fileName, {encoding:"utf8"}).toString() };
234+
args.storageContents[storageName] = { data: fs.readFileSync(fileName, {encoding:"binary"}).toString() };
235235
}
236236
}
237237
}

0 commit comments

Comments
 (0)