set LC_NUMERIC=en_US.UTF-8

General support questions
Post Reply
mazellan
Posts: 11
Joined: 2018/01/25 19:42:28
Location: Sweden

set LC_NUMERIC=en_US.UTF-8

Post by mazellan » 2018/02/19 19:41:05

Hi, I have a bit of problem with the locale variables. In the "settings/Region & Language" I have set the Language to English (us) and the Formats to Sweden. However, I need to set the variable LC_NUMERIC=en_US.UTF-8 for a specific software to work. I could solve it by setting the variable in the shell that I run the software from (I use the environmental modules system to set all the environmental variables for that and other software). But I would like to change the LC_NUMERIC system wide (and not only for programs that I start from the shell). I searched a bit. One proposed solution was to export it from .bash_profile. That did not work, I export it but the variable is overwritten in a later stage because when I open a shell and type (I did logout and in again after I changed in .bash_profile).

Code: Select all

locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=sv_SE.UTF-8
LC_TIME=sv_SE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=sv_SE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=sv_SE.UTF-8
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT=sv_SE.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
So, where should I change LC_NUMERIC so that it bites? :)

Post Reply