Setting correct location

Questions about the installation of FreeBSD
Post Reply
lawksalawdy
Posts: 6
Joined: Sat May 11, 2019 11:23 pm

Setting correct location

Post by lawksalawdy »

Hello,

First of all - thanks for GhostBSD, a very impressive implementation of FreeBSD. I have just installed GhostBSD 20.8.4 FreeBSD 12.2-STABLE amd64 with XFCE. All very smooth for a new install but I have a problem with apps like Thunderbird and KMYMoney showing dates in MM/DD/YYYY format but in my country we use DD/MM/YYYY.

Date correctly shows "Sun Oct 25 11:14:57 AEDT 2020" but locale shows:

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

All should show "=en_AU.UTF-8"

I am unfamiliar with OpenRC and would appreciate some guidance in implementing the correct locale settings.

Thanks,

Ron Chambers
Melbourne, Australia
User avatar
slughorn
Posts: 135
Joined: Mon Oct 02, 2017 2:55 pm

Re: Setting correct location

Post by slughorn »

It seems that not all addons are available for this version of thunderbird. It is to new.
User avatar
slughorn
Posts: 135
Joined: Mon Oct 02, 2017 2:55 pm

Re: Setting correct location

Post by slughorn »

OpenRC is a dependency-based init system.

If you like to know something about OpenRC read: https://wiki.ghostbsd.org/index.php/OpenRC.
lawksalawdy
Posts: 6
Joined: Sat May 11, 2019 11:23 pm

Re: Setting correct location

Post by lawksalawdy »

Thanks for responding slughorn.

I did read that section of the GhostBSD documentation but are still no closer to fixing this issue. I have tried changing the various .profile and login.conf files and then doing the "cap_mkdb" on the appropriate file but without changing success in changing the locale. It is system wide and affects all date displays including those in Thunar and PCMANFM. My theory is still that OpenRC configuration is the root cause but a solution has not yet revealed itself. Guess I will just have to live with it until I crack it.

Ron
mapsware
Posts: 45
Joined: Tue May 07, 2019 11:22 pm
Location: Hermosillo, Son. Mexico

Re: Setting correct location

Post by mapsware »

Try changing the LANG variable in ~/.profile. It work for me

In my case LANG variable was in the last line
lawksalawdy
Posts: 6
Joined: Sat May 11, 2019 11:23 pm

Re: Setting correct location

Post by lawksalawdy »

Thanks for responding mapsware.

I tried what you suggest plus changing .login_conf and running cap_mkdb but still no success with either .profile or .login. My Timezone is correct and clock is running OK so I guess I will just live with the way each of the apps - e.g. Caja - displays dates. Caja at least allows for different date formats in preferences but PCMANFM seems not to.

Ron
mapsware
Posts: 45
Joined: Tue May 07, 2019 11:22 pm
Location: Hermosillo, Son. Mexico

Re: Setting correct location

Post by mapsware »

Maybe you forgot to export the variable, let us know the output of locale and the content of your ~/.profile

I am in Mexico, searching the possible locale config for my country

Code: Select all

user@host ~% locale -a | grep MX
es_MX.ISO8859-1
es_MX.UTF-8
In mi ~/.profile I have

Code: Select all

CHARSET=UTF-8; export CHARSET
LANG=es_MX.UTF-8; export LANG
I accomplish my locale configuration

Code: Select all

user@host~% locale
LANG=es_MX.UTF-8
LC_CTYPE="es_MX.UTF-8"
LC_COLLATE="es_MX.UTF-8"
LC_TIME="es_MX.UTF-8"
LC_NUMERIC="es_MX.UTF-8"
LC_MONETARY="es_MX.UTF-8"
LC_MESSAGES="es_MX.UTF-8"
LC_ALL=
Post Reply