Locale problem [**SOLVED**]

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
consufed
Posts: 31
Joined: 2013-08-11 21:57

Locale problem [**SOLVED**]

#1 Post by consufed »

I re-installed Buster 4.19.0-9-amd64 + XFCE a few days ago. All working fine - except date format.
I also get warnings in terminal mode:
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
manpath: can't set the locale; make sure $LC_* and $LANG are correct
The problem is simple(?): I want to re-achieve the following preferences:
Language: English (preferably GB)
Keyboard: US
Date format: European (24 hour clock, date as Day-Month-Year or YMD - but not US format MDY)
Date & time: EU Brussels
Currency & decimal number format with "." not ","

Where can I definitively change the locale settings?

SOLVED: My recommendation is : Do not use indirect commands such as locale.gen , update-locale, which modify the file /etc/default/locale.
Instead, edit the file /etc/default/locale directly using nano.
Last edited by consufed on 2020-07-30 08:18, edited 1 time in total.

User avatar
eriefisher
Posts: 130
Joined: 2008-06-04 03:49
Location: Ontario's South Coast

Re: Locale problem

#2 Post by eriefisher »

Code: Select all

dpkg-reconfigure locales
https://wiki.debian.org/Locale
____________________________________________
There's a manual?
Siduction
Debian Sid
Xfce4 4.14

consufed
Posts: 31
Joined: 2013-08-11 21:57

Re: Locale problem

#3 Post by consufed »

The wiki link you posted is somewhat dated. The definitive answer I needed was discovered elsewhere.

cuckooflew
Posts: 681
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Locale problem

#4 Post by cuckooflew »

Maybe consider sharing, where "elsewhere' is, so others benefit as well,....thank you
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

consufed
Posts: 31
Joined: 2013-08-11 21:57

Re: Locale problem [**SOLVED**]

#5 Post by consufed »

I stumbled across this link: https://www.tecmint.com/set-system-locales-in-linux/
This describes clearly the use of update-locale, which command is not referenced in the Debian wiki.
However, I decided that directly editing the file /etc/default/locale is the best way.

cuckooflew
Posts: 681
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Locale problem [**SOLVED**]

#6 Post by cuckooflew »

Ok, thanks
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

User avatar
eriefisher
Posts: 130
Joined: 2008-06-04 03:49
Location: Ontario's South Coast

Re: Locale problem [**SOLVED**]

#7 Post by eriefisher »

Third line from the bottom of the page:
Locale (last modified 2020-01-29 20:52:50)
The link was just to explain the command but you seem to have figured it out through another route anyway. Glad it's sorted.
____________________________________________
There's a manual?
Siduction
Debian Sid
Xfce4 4.14

Post Reply