From 130a2c8380a227a2213fadcf4ee4759fd670e939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Flor=20Chac=C3=B3n?= <14323496+florelis@users.noreply.github.com> Date: Tue, 10 Jan 2023 12:44:39 -0800 Subject: [PATCH] Make correlation test script work on powershell.exe (#2834) One of the correlation test scripts includes a line that makes a cmdlet use utf8BOM encoding, which doesn't exist in powershell.exe, only on pwsh.exe. Change this encoding to utf8 which is supported in both. --- tools/CorrelationTestbed/Process-CorrelationResults.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/CorrelationTestbed/Process-CorrelationResults.ps1 b/tools/CorrelationTestbed/Process-CorrelationResults.ps1 index 4825e2e8f..7a2c51c0b 100644 --- a/tools/CorrelationTestbed/Process-CorrelationResults.ps1 +++ b/tools/CorrelationTestbed/Process-CorrelationResults.ps1 @@ -73,12 +73,12 @@ foreach ($result in (Get-ChildItem $ResultsPath -Directory)) $stats.CorrelationDisagreement += 1 } } - Export-Csv -InputObject ($resultObj | Select-Object -Property * -ExcludeProperty @("Error", "Phase", "Action", "HRESULT") ) -Path $resultFile -Append -Encoding UTF8BOM + Export-Csv -InputObject ($resultObj | Select-Object -Property * -ExcludeProperty @("Error", "Phase", "Action", "HRESULT") ) -Path $resultFile -Append -Encoding utf8 } else { $stats.Failed++ - Export-Csv -InputObject $resultObj -Path $failedFile -Append -Encoding UTF8BOM + Export-Csv -InputObject $resultObj -Path $failedFile -Append -Encoding utf8 } }