Wrap git_locale in quotes

Without quoting, the lookup would fail for some characters
This commit is contained in:
Mihai Botezatu
2025-11-07 01:03:40 +01:00
committed by GitHub
parent 614f314e41
commit 0cbe1e8d8c

2
vendor/init.bat vendored
View File

@@ -355,7 +355,7 @@ setlocal enabledelayedexpansion
if defined git_locale (
REM %print_debug% init.bat "Env Var - git_locale=!git_locale!"
if not defined LANG (
for /F "delims=" %%F in ('!git_locale! -uU 2') do (
for /F "delims=" %%F in ('"!git_locale!" -uU 2') do (
set "LANG=%%F"
)
)