File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
test/powershell/Language/Parser Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Describe "Redirection operator now supports encoding changes" -Tags "CI" {
31
31
32
32
It " If encoding is unset, redirection should be platform appropriate" {
33
33
$asciiString > TESTDRIVE:\file.txt
34
- $encoder = [Microsoft.PowerShell.PowerShellEncoding ]::GetEncoding(" utf8nobom" )
34
+ $encoder = [Microsoft.PowerShell.EncodingUtils ]::GetEncoding(" utf8nobom" )
35
35
$bytes = get-content - encoding byte TESTDRIVE:\file.txt
36
36
# create the expected
37
37
$BOM = $encoder.GetPreamble ()
@@ -59,7 +59,7 @@ Describe "Redirection operator now supports encoding changes" -Tags "CI" {
59
59
# and out-file has its own translation, so we'll
60
60
# not do that logic here, but simply ignore those encodings
61
61
# as they eventually are translated to "real" encoding
62
- $enc = [Microsoft.PowerShell.PowerShellEncoding ]::GetEncoding($encoding )
62
+ $enc = [Microsoft.PowerShell.EncodingUtils ]::GetEncoding($encoding )
63
63
if ( $enc )
64
64
{
65
65
$msg = " Overriding encoding for out-file is respected for $encoding "
You can’t perform that action at this time.
0 commit comments