Skip to content

Conversation

stefanhaller
Copy link
Collaborator

For some of the git commands that lazygit uses, it needs to force the language to English because it parses git's output and needs to react to certain things. It used to do this by setting the locale to en_US.UTF-8; some users reported that this locale isn't available on their systems. Use the "C" locale instead, which achieves the same result and is guaranteed to be available everywhere.

Fixes #4731.

Some users reported that en_US.UTF-8 is not available on their systems, leading
to warnings in the command log. "C" also forces the language to English, and is
guaranteed to be available everywhere.
I'm not sure this is necessary, but it doesn't hurt.
@stefanhaller stefanhaller added the bug Something isn't working label Oct 9, 2025
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for c31b6041 100.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (c31b604) Report Missing Report Missing Report Missing
Head commit (99a83ef) 58234 50648 86.97%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#4949) 7 7 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Footnotes

  1. Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

@stefanhaller stefanhaller merged commit 47ca082 into master Oct 9, 2025
14 checks passed
@stefanhaller stefanhaller deleted the dont-depend-on-us-english-locale branch October 9, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue with "locale" in "Command log"

1 participant