Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: cr6 on 22 March 2024, 19:55:57

Title: [SOLVED] doas does not respect the locale settings?
Post by: cr6 on 22 March 2024, 19:55:57
Code: [Select]
[bastien@mongolia ~]$ cat /etc/locale.conf
LANG=fr_FR.UTF-8
LC_COLLATE=C
[bastien@mongolia ~]$ doas pacman -Syu
doas (bastien@mongolia) password:
:: Synchronizing package databases...
 system is up to date
 world is up to date
 galaxy is up to date
 lib32 is up to date
:: Starting full system upgrade...
 there is nothing to do
[bastien@mongolia ~]$ sudo pacman -Syu
[sudo] Mot de passe de bastien :
:: Synchronisation des bases de données de paquets…
 system est à jour
 world est à jour
 galaxy est à jour
 lib32 est à jour
:: Début de la mise à jour complète du système…
 il n’y a rien à faire

:/  ??
Title: Re: doas does not respect the locale settings?
Post by: tintin on 23 March 2024, 05:18:08

Hello,
My /etc/locale.conf as it was configured during system installation (calamares):
Code: [Select]
cat /etc/locale.conf
LANG=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_NUMERIC=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
Title: Re: doas does not respect the locale settings?
Post by: cr6 on 23 March 2024, 13:03:10

Unfortunately it doesn't change anything for doas...  :(
Title: Re: doas does not respect the locale settings?
Post by: phoenix_king_rus on 23 March 2024, 13:35:19
I pass LANG via setenv option in doas.conf
Title: Re: doas does not respect the locale settings?
Post by: doheka on 24 March 2024, 03:24:07
Read the Note from here (https://wiki.archlinux.org/title/Doas#Smooth_transition_sudo_to_doas), it seems this is your case. I have a line in /etc/doas.conf that makes everything work

Code: [Select]
permit persist setenv { XAUTHORITY LANG LC_ALL } :wheel
Title: Re: doas does not respect the locale settings?
Post by: cr6 on 25 March 2024, 12:05:13
Ah yes! I didn't see it...

Thanks a lot!  :D