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

Commit 6a2660c

Browse files
authored
Merge pull request #113 from AtomLinter/arcanemagus/fix-encoding-specification
Change how encoding is specified
2 parents 239d772 + 4a1d6ad commit 6a2660c

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)