From 217a9819011243481c1bcb82b604e12f997d08c9 Mon Sep 17 00:00:00 2001 From: Christopher Date: Thu, 20 Feb 2020 15:51:44 +0000 Subject: [PATCH] fix: use experimental detect encoding with svn cat (#832) --- src/svnRepository.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/svnRepository.ts b/src/svnRepository.ts index 26ba05bb..caa26b6f 100644 --- a/src/svnRepository.ts +++ b/src/svnRepository.ts @@ -350,6 +350,14 @@ export class Repository { } } + const experimental = configuration.get( + "experimental.detect_encoding", + false + ); + if (experimental) { + encoding = null; + } + const result = await this.exec(args, { encoding }); return result.stdout;