From 3f5568f0e6f13658b34181a6605e6e80b52ddd90 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 6 Nov 2024 13:55:19 +0100 Subject: [PATCH] Give LANG env var priority (windows) --- internal/i18n/detect_windows.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/i18n/detect_windows.go b/internal/i18n/detect_windows.go index a43e72c7cb5..84bc3af7997 100644 --- a/internal/i18n/detect_windows.go +++ b/internal/i18n/detect_windows.go @@ -30,6 +30,10 @@ func getLocaleIdentifier() string { } }() + if loc := getLocaleIdentifierFromEnv(); loc != "" { + return loc + } + dll := syscall.MustLoadDLL("kernel32") defer dll.Release() proc := dll.MustFindProc("GetUserDefaultLocaleName")