Skip to content

Issue with "locale" in "Command log" #4731

@Fooughhy

Description

@Fooughhy

Describe the bug
lazygit is not using the default shell in the "Command log". It seems to always use bash specifically in this window, but I have been unable to test this further as I don't want to remove the bash binary. And it is changing the locale to 'en_US.UTF-8', which I do not have installed.

To Reproduce
Steps to reproduce the behavior:

  1. Configure default shell to not be bash. Remove 'en_US.UTF-8' from locales.
  2. Open lazygit, and view "Command log" window.
  3. Should see log regarding locale.

Expected behavior
Either lazygit should use the default shell always, or it should allow for configuring the locale used by bash.

Screenshots
I get this warning continuously in the lazygit "Command log" window:
Image

Default shell (zsh):

grep whoami /etc/passwd
fough:x:1000:1000:,,,:/home/fough:/usr/bin/zsh

Version info:
lazygit: commit=bc4b50f817a0b82393a872f96b04a77f769ae929, build date=2025-07-05T02:32:23Z, build source=binaryRelease, version=0.53.0, os=linux, arch=arm64, git version=2.39.5
git: git version 2.39.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions