Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[utf8] probleme de locale (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
loopx
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2787
Location: Belgium / Liège

PostPosted: Tue Apr 28, 2009 5:39 pm    Post subject: [utf8] probleme de locale (résolu) Reply with quote

Bonsoir,


J'ai réinstaller ma gentoo l'autre jour ... j'avais pas encore configuré les locales .. C'est maintenant chose faite en faisant comme indiqué ici :

http://pix-mania.dyndns.org/mediawiki/index.php/Gentoo#Passer_les_locales_en_UTF8




J'ai bien l'utf8 dans le terminal .. mais pas ailleur .. J'ai donc tuer X (plus aucun user loggé) et relancer ... Rien, tjs du POSIX ... J'ai redémarré ... et, en user, ca fonctionne, mais pas en root ...


Je me demande d'ou vient cela ... :


Code:
loopx@loop ~ $ locale
LANG=fr_BE.UTF-8
LC_CTYPE="fr_BE.UTF-8"
LC_NUMERIC="fr_BE.UTF-8"
LC_TIME="fr_BE.UTF-8"
LC_COLLATE="fr_BE.UTF-8"
LC_MONETARY="fr_BE.UTF-8"
LC_MESSAGES="fr_BE.UTF-8"
LC_PAPER="fr_BE.UTF-8"
LC_NAME="fr_BE.UTF-8"
LC_ADDRESS="fr_BE.UTF-8"
LC_TELEPHONE="fr_BE.UTF-8"
LC_MEASUREMENT="fr_BE.UTF-8"
LC_IDENTIFICATION="fr_BE.UTF-8"
LC_ALL=fr_BE.UTF-8
loopx@loop ~ $ su
Password:
loop loopx # locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=



Arg, serais-ce aussi parce que j'ai pas fait de "su -" ?


Test .. :

Code:
loop loopx # exit
exit
loopx@loop ~ $ su -
Password:
loop ~ # locale
LANG=fr_BE.UTF-8
LC_CTYPE="fr_BE.UTF-8"
LC_NUMERIC="fr_BE.UTF-8"
LC_TIME="fr_BE.UTF-8"
LC_COLLATE="fr_BE.UTF-8"
LC_MONETARY="fr_BE.UTF-8"
LC_MESSAGES="fr_BE.UTF-8"
LC_PAPER="fr_BE.UTF-8"
LC_NAME="fr_BE.UTF-8"
LC_ADDRESS="fr_BE.UTF-8"
LC_TELEPHONE="fr_BE.UTF-8"
LC_MEASUREMENT="fr_BE.UTF-8"
LC_IDENTIFICATION="fr_BE.UTF-8"
LC_ALL=fr_BE.UTF-8
loop ~ # exit
logout
loopx@loop ~ $ su
Password:
loop loopx # locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=



Heu, on dirait .. donc en fait, pour passer root, faut faire "su -" et pas "su" ... Me semblait que c'étais uniquement nécessaire sur Unix :o
_________________
Mon MediaWiki perso : http://pix-mania.dyndns.org


Last edited by loopx on Tue Apr 28, 2009 9:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772
Location: Wellington, Aotearoa

PostPosted: Tue Apr 28, 2009 6:08 pm    Post subject: Re: [utf8] probleme de locale Reply with quote

loopx wrote:
Heu, on dirait .. donc en fait, pour passer root, faut faire "su -" et pas "su" ... Me semblait que c'étais uniquement nécessaire sur Unix :o

Avec le - ça simule un login, donc ça te remet un environnement à zéro, ce qui est souvent preférable. Sans le - ça change juste ton uid, sans rien de plus.

Pas d'idée pour ton problème de locales par contre.
Back to top
View user's profile Send private message
loopx
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2787
Location: Belgium / Liège

PostPosted: Tue Apr 28, 2009 6:18 pm    Post subject: Reply with quote

Ben tu viens d'y répondre, c'est ca le problème.


Chez vous, un "su" vous donne des locales correcte ?
_________________
Mon MediaWiki perso : http://pix-mania.dyndns.org
Back to top
View user's profile Send private message
Trapamoosch
Apprentice
Apprentice


Joined: 08 May 2004
Posts: 203

PostPosted: Tue Apr 28, 2009 6:50 pm    Post subject: Reply with quote

Chez moi un "su" tout court me donne des locale POSIX aussi, et "su -" de l'UTF8.
Back to top
View user's profile Send private message
loopx
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2787
Location: Belgium / Liège

PostPosted: Tue Apr 28, 2009 9:51 pm    Post subject: Reply with quote

Trapamoosch wrote:
Chez moi un "su" tout court me donne des locale POSIX aussi, et "su -" de l'UTF8.



Ah ben voilou, tout est normal :)
_________________
Mon MediaWiki perso : http://pix-mania.dyndns.org
Back to top
View user's profile Send private message
Tanki
Apprentice
Apprentice


Joined: 29 Mar 2005
Posts: 195
Location: Bordeaux/France

PostPosted: Tue Apr 28, 2009 10:32 pm    Post subject: Reply with quote

je veux pas faire chi*r hein, mais c'est juste que ça le fait pas chez moi :)

Code:

tanki@mozafoka ~ $ locale
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=fr_FR.UTF-8
tanki@mozafoka ~ $ su
Mot de passe :
mozafoka tanki # locale
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=fr_FR.UTF-8
mozafoka tanki #


j'ai rien fait, chez moi le su me donne mes locales correctes, les mêmes que celles que j'ai en user
_________________
Kick Ass !
Dell XPS 13 Developer Edition 9350 | Intel Core i7 @2.20 GHz | 16 Go DDR3 | SSD Samsung PM951 NVMe 512Go
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7940
Location: ~Brussels - Belgique

PostPosted: Wed Apr 29, 2009 6:59 am    Post subject: Reply with quote

Salut,

Où définis-tu tes locales ?

Chez moi c'est dans /etc/env.d/02locale et c'est global :)
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
loopx
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2787
Location: Belgium / Liège

PostPosted: Wed Apr 29, 2009 10:44 am    Post subject: Reply with quote

mais c'est plus normal du tout ca :o


Mes locales :

Code:
loopx@loop ~ $ cat /etc/env.d/02locale
LC_ALL="fr_BE.UTF-8"
LANG="fr_BE.UTF-8"



... doit aussi être correct ...
_________________
Mon MediaWiki perso : http://pix-mania.dyndns.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum