10000 Use new class name EncodingUtils · PowerShell/PowerShell@ff24e22 · GitHub
[go: up one dir, main page]

Skip to content

Commit ff24e22

Browse files
committed
Use new class name EncodingUtils
1 parent 8a0765e commit ff24e22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/powershell/Language/Parser/RedirectionOperator.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Describe "Redirection operator now supports encoding changes" -Tags "CI" {
3131

3232
It "If encoding is unset, redirection should be platform appropriate" {
3333
$asciiString > TESTDRIVE:\file.txt
34-
$encoder = [Microsoft.PowerShell.PowerShellEncoding]::GetEncoding("utf8nobom")
34+
$encoder = [Microsoft.PowerShell.EncodingUtils]::GetEncoding("utf8nobom")
3535
$bytes = get-content -encoding byte TESTDRIVE:\file.txt
3636
# create the expected
3737
$BOM = $encoder.GetPreamble()
@@ -59,7 +59,7 @@ Describe "Redirection operator now supports encoding changes" -Tags "CI" {
5959
# and out-file has its own translation, so we'll
6060
# not do that logic here, but simply ignore those encodings
6161
# as they eventually are translated to "real" encoding
62-
$enc = [Microsoft.PowerShell.PowerShellEncoding]::GetEncoding($encoding)
62+
$enc = [Microsoft.PowerShell.EncodingUtils]::GetEncoding($encoding)
6363
if ( $enc )
6464
{
6565
$msg = "Overriding encoding for out-file is respected for $encoding"

0 commit comments

Comments
 (0)
0