os().codepage bugfix
This commit is contained in:
parent
6f89009c09
commit
0557d79103
@ -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 |
|
||||
|
||||
@ -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';
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user