Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 01e72e3

Browse files
committed
Give LANG env var priority (windows)
1 parent a6e3276 commit 01e72e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎internal/i18n/detect_windows.go‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ func getLocaleIdentifier() string {
3030
}
3131
}()
3232

33+
if loc := getLocaleIdentifierFromEnv(); loc != "" {
34+
return loc
35+
}
36+
3337
dll := syscall.MustLoadDLL("kernel32")
3438
defer dll.Release()
3539
proc := dll.MustFindProc("GetUserDefaultLocaleName")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /