users() codepage win fix

This commit is contained in:
Sebastian Hildebrandt 2021-10-07 21:06:08 +02:00
parent 59bc7e36b7
commit e435597100

View File

@ -283,7 +283,7 @@ function users(callback) {
}
if (_windows) {
try {
exec('query user', util.execOptsWin, function (error, stdout) {
util.execWin('query user', util.execOptsWin, function (error, stdout) {
if (stdout) {
// lines / split
let lines = stdout.toString().split('\r\n');