From 764576530bb504cc6b2c42913e4fea3a3487f8a6 Mon Sep 17 00:00:00 2001 From: Kaspar Emanuel Date: Wed, 8 Aug 2018 20:19:39 +0100 Subject: [PATCH] Specify encoding in registry json read --- scripts/get_boards | 4 ++-- scripts/plug_versions | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/get_boards b/scripts/get_boards index 84eec304fe8..ecbe29da928 100755 --- a/scripts/get_boards +++ b/scripts/get_boards @@ -5,9 +5,9 @@ const cp = require('child_process'); const utils = require('./utils'); if (process.argv[2] === 'production') { - registry = JSON.parse(fs.readFileSync('registry.json')); + registry = JSON.parse(fs.readFileSync('registry.json', 'utf8')); } else { - registry = JSON.parse(fs.readFileSync('dev_registry.json')); + registry = JSON.parse(fs.readFileSync('dev_registry.json', 'utf8')); } diff --git a/scripts/plug_versions b/scripts/plug_versions index f9d71d8968f..7133fa671b9 100755 --- a/scripts/plug_versions +++ b/scripts/plug_versions @@ -3,7 +3,7 @@ const fs = require('fs') const utils = require('./utils') const repos = utils.readRepos() -const registry = JSON.parse(fs.readFileSync('registry.json')) +const registry = JSON.parse(fs.readFileSync('registry.json', 'utf8')) for (let index = 0; index < repos.length; index++) { var repo = repos[index]