Skip to content

Commit 05396cb

Browse files
edgardmessiasJohnstonCode
authored andcommitted
fix: Force locale to en_US.UTF-8 (close #660) (#667)
1 parent 6ea29ce commit 05396cb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/svn.ts

+6
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ export class Svn {
124124
if (cwd) {
125125
defaults.cwd = cwd;
126126
}
127+
128+
defaults.env = Object.assign({}, proc.env, options.env || {}, {
129+
LC_ALL: "en_US.UTF-8",
130+
LANG: "en_US.UTF-8"
131+
});
132+
127133
const process = cp.spawn(this.svnPath, args, defaults);
128134

129135
const disposables: IDisposable[] = [];

0 commit comments

Comments
 (0)