We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8dd30b commit 17c5438Copy full SHA for 17c5438
src/svn.ts
@@ -116,7 +116,7 @@ export class Svn {
116
// Force non interactive environment
117
args.push("--non-interactive");
118
119
- let encoding = options.encoding || "utf8";
+ let encoding = options.encoding || "";
120
delete options.encoding;
121
122
const defaults: cp.SpawnOptions = {
@@ -171,7 +171,7 @@ export class Svn {
171
// SVN with '--xml' always return 'UTF-8', and jschardet detects this encoding: 'TIS-620'
172
if (args.includes("--xml")) {
173
encoding = "utf8";
174
- } else {
+ } else if (encoding === "") {
175
const defaultEncoding = configuration.get<string>("default.encoding");
176
if (defaultEncoding) {
177
if (!iconv.encodingExists(defaultEncoding)) {
0 commit comments