os().codepage bugfix

This commit is contained in:
Sebastian Hildebrandt 2018-12-27 21:31:06 +01:00
parent 6f89009c09
commit 0557d79103
2 changed files with 2 additions and 1 deletions

View File

@ -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 |

View File

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