Skip to content

Commit

Permalink
fix: Force locale to en_US.UTF-8 (close #660) (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias authored and JohnstonCode committed Oct 2, 2019
1 parent 6ea29ce commit 05396cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/svn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ export class Svn {
if (cwd) {
defaults.cwd = cwd;
}

defaults.env = Object.assign({}, proc.env, options.env || {}, {
LC_ALL: "en_US.UTF-8",
LANG: "en_US.UTF-8"
});

const process = cp.spawn(this.svnPath, args, defaults);

const disposables: IDisposable[] = [];
Expand Down

0 comments on commit 05396cb

Please sign in to comment.