I'm having trouble fixing my locale settings. A similar question has been posted earlier here:
But it proved unhelpful. My problem is not that the locale is not installed on my system, as most answers seem to suggest. Details:
$ locale-gen "nb_NO.UTF-8"
Generating locales...
nb_NO.UTF-8... up-to-date
Generation complete.
$ update-locale LC_ALL="nb_NO.UTF-8"
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en",
LC_ALL = (unset),
LC_PAPER = "en_NO.UTF-8",
LC_ADDRESS = "en_NO.UTF-8",
LC_MONETARY = "en_NO.UTF-8",
LC_NUMERIC = "en_NO.UTF-8",
LC_TELEPHONE = "en_NO.UTF-8",
LC_IDENTIFICATION = "en_NO.UTF-8",
LC_MEASUREMENT = "en_NO.UTF-8",
LC_TIME = "en_NO.UTF-8",
LC_NAME = "en_NO.UTF-8",
LANG = "en_NO.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
I am guessing my problem is related to either KDE or having a different OS language than my local language (I want everything to be in english, but have norwegian keyboard settings, currency etc).
I think this problem arose after changing some settings in the system settings dialog a while back, bug?
I managed to temporarily fix the issue by changing the system language from American English to British English.
I did it via the KDE System Settings > Locale > Languages dialog. Amusingly, it displayed an error message saying that replacing the current language was not permitted, but in practice it was since the new settings were applied when I hit the "apply" button, and restarted the machine.
Leaving question open until bug is fixed. Current local output: