diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b9457a..504fa57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,7 +90,8 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | -| 5.30.3 | 2026-01-11 | Updated docs, code cleanup. | +| 5.30.4 | 2026-01-15 | `powerShell()` fix UTF8 output (windows) | +| 5.30.3 | 2026-01-11 | Updated docs, code cleanup | | 5.30.2 | 2026-01-08 | `processes()` revert added user (windows) | | 5.30.1 | 2026-01-07 | `networkInterfaces()`, `users()` improved date parsing (linux) | | 5.30.0 | 2026-01-06 | `processes()` added user (windows) | diff --git a/docs/history.html b/docs/history.html index d58feee..ecce61b 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,12 @@ + + 5.30.4 + + 2026-01-15 + powerShell() fix UTF8 output (windows) + 5.30.3 2026-01-11 diff --git a/docs/index.html b/docs/index.html index d52f535..ba7d175 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.30.3
+
New Version: 5.30.4
@@ -212,7 +212,7 @@
Downloads last month
-
937
+
940
Dependents
diff --git a/lib/util.js b/lib/util.js index 1d58ab6..fd058da 100644 --- a/lib/util.js +++ b/lib/util.js @@ -479,7 +479,7 @@ function powerShell(cmd) { const spanOptions = osVersion[0] < 10 ? ['-NoProfile', '-NoLogo', '-InputFormat', 'Text', '-NoExit', '-ExecutionPolicy', 'Unrestricted', '-Command', '-'] - : ['-NoProfile', '-NoLogo', '-InputFormat', 'Text', '-ExecutionPolicy', 'Unrestricted', '-Command', cmd]; + : ['-NoProfile', '-NoLogo', '-InputFormat', 'Text', '-ExecutionPolicy', 'Unrestricted', '-Command', _psToUTF8 + cmd]; const child = spawn(_powerShell, spanOptions, { stdio: 'pipe', windowsHide: true,