Redefine the unicode output condition for nanoserver/IoT for more function (#4074)

This commit is contained in:
Chunqing Chen 2017-08-16 08:41:49 +08:00 committed by Dongbo Wang
parent 0ca44f147d
commit ede3aec52e

View file

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