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'; }