diff --git a/triage/install-latest-wsl.ps1 b/triage/install-latest-wsl.ps1 index 975f64ff..3477e792 100644 --- a/triage/install-latest-wsl.ps1 +++ b/triage/install-latest-wsl.ps1 @@ -2,6 +2,12 @@ # This script downloads and installs the latest version of the WSL MSI package +# Get current language code +$chcp_num = (chcp) -replace '\D+\(\d+)','$1' + +# Set language to english +chcp 437 + $ErrorActionPreference = "Stop" Set-StrictMode -Version Latest @@ -48,3 +54,6 @@ if ($exitCode -Ne 0) Write-Host 'Installation complete' Remove-Item $target -Force + +# Restore original language +chcp $chcp_num