Wrong messages after setting LANG et al.

23 views
Skip to first unread message

Arash Esbati

unread,
Mar 5, 2026, 3:35:10 PM (8 days ago) Mar 5
to iterm2-...@googlegroups.com
Hi all,

first of all, many thanks for iTerm2, great tool! I'm using iTerm2
Build 3.6.8 installed via homebrew and it seems I'm not able to change
the $LANG for messages emitted by bash.

I have German as primary language for my macOS, but have these lines in
my .bashrc:

export LANG=en_US.UTF-8
export LC_MESSAGES=en_US.UTF-8
export LC_MONETARY=de_DE.UTF-8

Running locale in bash returns:

$ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=

I think I also told iTerm2 not to fiddle with the language with this
setting:
iterm2.png

George Nachman

unread,
Mar 6, 2026, 6:49:29 PM (7 days ago) Mar 6
to iterm2-...@googlegroups.com
If you start bash within bash, does that one give you English messages? Perhaps the issue is that the environment is set to German at the time bash starts and it doesn’t update its own locale when you assign to LANG. If that is the case, then try setting the local to “Custom locale” and pick US English:


--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/iterm2-discuss/m2qzpyqati.fsf%40macmutant.fritz.box.



Still, when I enter a wrong command name in bash, say 'lo RET', I get:

 $ lo
 -bash: lo: Kommando nicht gefunden

Any hint what I'm doing wrong?

Best, Arash

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/iterm2-discuss/m2qzpyqati.fsf%40macmutant.fritz.box.

Arash Esbati

unread,
Mar 7, 2026, 8:06:54 AM (6 days ago) Mar 7
to iterm2-...@googlegroups.com
George Nachman <gnac...@llamas.org> writes:

> If you start bash within bash, does that one give you English
> messages?

Yes, it does.

> Perhaps the issue is that the environment is set to German at the time
> bash starts and it doesn’t update its own locale when you assign to
> LANG. If that is the case, then try setting the local to “Custom
> locale” and pick US English:

Yes, that does the trick. Again, many thanks for maintaining iTerm2.

Best, Arash

Reply all
Reply to author
Forward
0 new messages