Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] doas does not respect the locale settings? (Read 328 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

[SOLVED] doas does not respect the locale settings?

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

:/  ??

 

Re: doas does not respect the locale settings?

Reply #1

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


Re: doas does not respect the locale settings?

Reply #3
I pass LANG via setenv option in doas.conf
ARMtix

Re: doas does not respect the locale settings?

Reply #4
Read the Note from here, 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

Re: doas does not respect the locale settings?

Reply #5
Ah yes! I didn't see it...

Thanks a lot!  :D