mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 13:37:07 +00:00
Be explicit about the encoding of JSON config
This commit is contained in:
@@ -36,7 +36,7 @@ try {
|
||||
}
|
||||
} else {
|
||||
|
||||
const text = fs.readFileSync(cfgPath);
|
||||
const text = fs.readFileSync(cfgPath, 'utf8');
|
||||
if (text) {
|
||||
config = JSON.parse(text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user