There was an error while loading. Please reload this page.
1 parent 8e48788 commit f273ef9Copy full SHA for f273ef9
1 file changed
tests/pacman/msys-runtime-smoke.ps1
@@ -217,8 +217,10 @@ $commonArguments = @(
217
# Exclude Git for Windows and any preinstalled MSYS2 tree from DLL lookup.
218
$savedPath = $env:PATH
219
$savedLang = $env:LANG
220
+$savedLcAll = $env:LC_ALL
221
$env:PATH = "${env:SystemRoot}\System32;${env:SystemRoot}"
-$env:LANG = "C.UTF-8"
222
+$env:LANG = "en_US.UTF-8"
223
+$env:LC_ALL = "en_US.UTF-8"
224
try {
225
Invoke-Checked $pacman @("--version")
226
Invoke-Checked $pacman @(
@@ -320,6 +322,12 @@ finally {
320
322
else {
321
323
$env:LANG = $savedLang
324
}
325
+ if ($null -eq $savedLcAll) {
326
+ Remove-Item Env:LC_ALL -ErrorAction SilentlyContinue
327
+ }
328
+ else {
329
+ $env:LC_ALL = $savedLcAll
330
331
332
333
if ($Extended) {
0 commit comments