From 7a3a837f8149e93489597c2f9ece29ff94503655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Bene=C5=A1?= Date: Tue, 17 Sep 2024 10:56:36 +0200 Subject: [PATCH] Force 'execCommand' to use utf8 and to have max 1MB buffer --- src/effektManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effektManager.ts b/src/effektManager.ts index a165bcb..8ae58f9 100644 --- a/src/effektManager.ts +++ b/src/effektManager.ts @@ -88,7 +88,7 @@ export class EffektManager { */ private async execCommand(command: string, resolveWithStderr?: boolean): Promise { return new Promise((resolve, reject) => { - cp.exec(command, (error, stdout, stderr) => { + cp.exec(command, { encoding: 'utf8', maxBuffer: 1024 * 1024 }, (error, stdout, stderr) => { if (error) { reject(error); } else {