IntelliJ IDEA Terminal doesn't set locale on macOS

Answered

Using the Terminal in IntelliJ IDEA on macOS, I get error messages from some shell utilities like Unknown locale, assuming C.  The locale command in the terminal tells me my settings are…

$ locale
LANG=""
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

However, if I check the locale settings in Apple's Terminal.app or iTerm2, I see…

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

I have echo statements in my  ~/.bash_profile and ~/.bashrc, so I see that they are executed the same in all of the terminal apps.  So, why does IntelliJ IDEA's Terminal get it wrong?

---

Versions:

  • IntelliJ IDEA: 2025.2.3 (Ultimate Edition), Build #IU-252.26830.84
  • Terminal (bundled plugin): 252.26830.84
  • macOS: 15.7.1
0
1 comment

Hi Lance E Sloan 

We have an open bug for this issue. Please subscribe to it and upvote to give more visibility. You'll also be able to track any updates in it. Here is the ticket: IJPL-213980.

0

Please sign in to leave a comment.