From 0557d791036c904f6af95c43049e97d3a317c7ed Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Thu, 27 Dec 2018 21:31:06 +0100 Subject: [PATCH] os().codepage bugfix --- CHANGELOG.md | 1 + lib/util.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6375ea..40ca43c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -100,6 +100,7 @@ Other changes | Version | Date | Comment | | -------------- | -------------- | -------- | +| 3.52.3 | 2018-12-27 | `os().codepage` bugfix | | 3.52.2 | 2018-12-17 | code cleanup | | 3.52.1 | 2018-12-17 | `inetChecksite()` bugfix windows | | 3.52.0 | 2018-12-15 | `cpu()` added physical cores, processors, socket type | diff --git a/lib/util.js b/lib/util.js index 2bd27ef..ccc0205 100644 --- a/lib/util.js +++ b/lib/util.js @@ -263,7 +263,7 @@ function getCodepage() { const stdout = execSync('echo $LANG'); const lines = stdout.toString().split('\r\n'); const parts = lines[0].split('.'); - codepage = parts.length > 1 ? parts[1].trim : ''; + codepage = parts.length > 1 ? parts[1].trim() : ''; } catch (err) { codepage = 'UTF-8'; }