Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 4a1d6ad

Browse files
committed
Change how encoding is specified
Apparently on macOS Ruby has different command line arguments from all the other OS's, thankfully it seems the --external-encoding and --internal-encoding options are the same, and the -Eutf-8 that was in use before is equivalent to setting both of those anyway.
1 parent 23b4516 commit 4a1d6ad

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/main.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ export default {
3636
return [];
3737
}
3838

39-
const execArgs = ['-wc', '-Eutf-8'];
39+
const execArgs = [
40+
'-c', // Check syntax only, no execution
41+
'-w', // Turns on warnings
42+
// Set the encoding to UTF-8
43+
'--external-encoding=utf-8',
44+
'--internal-encoding=utf-8',
45+
];
4046
const execOpts = {
4147
stdin: fileText,
4248
stream: 'stderr',

0 commit comments

Comments
 (0)