LC_COLLATE Variable?
Hi,
I’m running my CentOS 7 desktop in french. LANG is set to fr_FR.UTF-8.
In GNOME 3, the menu entries are listed in alphabetical order. Unfortunately, entries beginning with an accented character (like
“Éditeur de texte”) appear at the bottom of the list.
I know that in order to correct this, I have to set the LC_COLLATE
variable to fr_FR.UTF-8. What would be a sensible place to do this system-wide under CentOS 7?
Cheers,
Niki
—
Microlinux – Solutions informatiques 100% Linux et logiciels libres
7, place de l’église – 30730 Montpezat Web : http://www.microlinux.fr Mail : info@microlinux.fr Tél. : 04 66 63 10 32
5 thoughts on - LC_COLLATE Variable?
Hi,
to my knowledge
echo “LC_COLLATE=fr_FR.UTF-8” >> /etc/locale.conf
is the right way to do that.
Regards, Michael
Am 15.02.2015 um 08:43 schrieb Niki Kovacs:
Le 15/02/2015 16:38, Michael Volz a écrit :
Thanks! If I remember correctly, CentOS 5.x and 6.x had an
/etc/sysconfig/i18n file for that.
Cheers,
Niki
—
Microlinux – Solutions informatiques 100% Linux et logiciels libres
7, place de l’église – 30730 Montpezat Web : http://www.microlinux.fr Mail : info@microlinux.fr Tél. : 04 66 63 10 32
Le 15/02/2015 16:38, Michael Volz a écrit :
Unfortunately that didn’t work. Putting LC_COLLATE in /etc/locale.conf does nothing.
Now what?
—
Microlinux – Solutions informatiques 100% Linux et logiciels libres
7, place de l’église – 30730 Montpezat Web : http://www.microlinux.fr Mail : info@microlinux.fr Tél. : 04 66 63 10 32
Le 16/02/2015 07:18, Niki Kovacs a écrit :
I think in CentOS 7, it’s now localectl (systemd) is the way to do that.
Here is a link :
http://www.freedesktop.org/software/systemd/man/localectl.html
regards,
MAACHE Mehdi
Hi together,
CentOS 7 uses localectl to manage the locales. But they are stored in
/etc/locale.conf. You can either set them manually in that file or use
localectl set-locale LANG=fr_FR.UTF-8 LC_COLLATE=fr_FR
to do that. Using localectl immediatly applies the change without the need to restart the system. It seems that fr_FR.UTF-8 is not a valid locale for LC_COLLATE, as indeed it is not accepted by localectl, fr_FR
is however.
Regards Michael
Am 16.02.2015 um 11:22 schrieb Mehdi Maache: