Locale problem [**SOLVED**]

New to Debian (Or Linux in general)? Ask your questions here!

Locale problem [**SOLVED**]

Postby consufed » 2020-07-29 15:47

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.
consufed
 
Posts: 31
Joined: 2013-08-11 21:57

Re: Locale problem

Postby eriefisher » 2020-07-29 17:16

Code: Select all
dpkg-reconfigure locales


https://wiki.debian.org/Locale
____________________________________________
There's a manual?
Siduction
Debian Sid
Xfce4 4.14
User avatar
eriefisher
 
Posts: 129
Joined: 2008-06-04 03:49
Location: Ontario's South Coast

Re: Locale problem

Postby consufed » 2020-07-30 08:03

The wiki link you posted is somewhat dated. The definitive answer I needed was discovered elsewhere.
consufed
 
Posts: 31
Joined: 2013-08-11 21:57

Re: Locale problem

Postby cuckooflew » 2020-07-30 08:20

Maybe consider sharing, where "elsewhere' is, so others benefit as well,....thank you
Please Read What we expect you have already Done
Google knows a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 550
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Locale problem [**SOLVED**]

Postby consufed » 2020-07-30 08:35

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.
consufed
 
Posts: 31
Joined: 2013-08-11 21:57

Re: Locale problem [**SOLVED**]

Postby cuckooflew » 2020-07-30 09:12

Ok, thanks
Please Read What we expect you have already Done
Google knows a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 550
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Locale problem [**SOLVED**]

Postby eriefisher » 2020-07-30 11:37

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
User avatar
eriefisher
 
Posts: 129
Joined: 2008-06-04 03:49
Location: Ontario's South Coast


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable