diff --git a/src/Utils.ts b/src/Utils.ts index c9218e6..4042fe4 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -215,10 +215,10 @@ export function checkRequirements(): void { try { const versionRegex = new RegExp(/aria2 version (.*)/); - const aira2Ver: string = execSync('aria2c --version').toString().split('\n')[0]; + const aria2Ver: string = execSync('LANG=en_US.UTF-8 aria2c --version').toString().split('\n')[0]; - if (versionRegex.test(aira2Ver)) { - logger.verbose(`Using ${aira2Ver}\n`); + if (versionRegex.test(aria2Ver)) { + logger.verbose(`Using ${aria2Ver}\n`); } else { throw new Error();