2

On System Preferences, Language and Region, when I select United Kingdom the output of locale is

LANG="en_GB"
LC_COLLATE="en_GB"
LC_CTYPE="en_GB"
LC_MESSAGES="en_GB"
LC_MONETARY="en_GB"
LC_NUMERIC="en_GB"
LC_TIME="en_GB"
LC_ALL=

If I select Norway though the outputs is

LANG="en_NO"
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

I suspect this is the reason why commands like ls show dates in the mon date format instead of date mon, even when Norwegian follows the latter. locale -a | grep en_NO shows nothing and I guess that's why. So I tried to copy /usr/share/locale/no_NO to /usr/share/locale/en_NO and change it to suite my needs and of course I receive mkdir: en_NO: Operation not permitted because the system volume is mounted as read only on Catalina. So, is there any way I can add my own locale?

4
  • Would putting export LC_TIME="en_GB.UTF-8" etc in your ~/.zshrc work for you? – lx07 Mar 15 '20 at 12:20
  • For some reason it doesn't work, no matter what locale keeps showing me that LC_TIME is C. Also I wanted to get all the values for LC_* from defaults read NSGlobalDomain AppleLocale – Tae Mar 15 '20 at 12:54
  • 1
    You need to run source ~/.zshrc or open a new terminal emulator window after changing the file... – lx07 Mar 15 '20 at 13:47
  • Yeah, I know that. Actually I don't use ZSH, I use Fish as my shell, and it's already fairly customised and everything works as expected, except this – Tae Mar 15 '20 at 17:58
1

I don't know if your issue was identical to mine, but this worked for me at least. I also noticed that my system tried to set nb_no.UTF-8 (and failed) instead of no.NO.

  1. vim ~/.config/fish/config.fish
  2. set -x LC_ALL no_NO.UTF-8
1
  • Not the same, I want en_NO, with is no available in the system, so the question is about how to add it first – Tae Apr 11 '20 at 10:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .