mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Redefine the unicode output condition for nanoserver/IoT for more function (#4074)
This commit is contained in:
1 parent
0ca44f147d
commit
ede3aec52e
1 file changed
+1
-1
@@ -5329,7 +5329,7 @@ end
|
||||
internal const string DefaultMoreFunctionText = @"
|
||||
param([string[]]$paths)
|
||||
# Nano needs to use Unicode, but Windows and Linux need the default
|
||||
$OutputEncoding = if ($IsWindows -and $IsCoreCLR) {
|
||||
$OutputEncoding = if ([System.Management.Automation.Platform]::IsNanoServer -or [System.Management.Automation.Platform]::IsIoT) {
|
||||
[System.Text.Encoding]::Unicode
|
||||
} else {
|
||||
[System.Console]::OutputEncoding
|
||||
|
||||
Reference in new issue
Block a user