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

Change how encoding is specified #113

Merged
merged 1 commit into from
Aug 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ export default {
return [];
}

const execArgs = ['-wc', '-Eutf-8'];
const execArgs = [
'-c', // Check syntax only, no execution
'-w', // Turns on warnings
// Set the encoding to UTF-8
'--external-encoding=utf-8',
'--internal-encoding=utf-8',
];
const execOpts = {
stdin: fileText,
stream: 'stderr',
Expand Down