Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LC_TYPE="fr_FR" ok except for login bash
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
eunuque
n00b
n00b


Joined: 19 Aug 2003
Posts: 62

PostPosted: Mon Nov 10, 2003 10:43 pm    Post subject: LC_TYPE="fr_FR" ok except for login bash Reply with quote

I set LC_CTYPE to "fr_FR" in /etc/env.d/00basic:

Code:
# /etc/env.d/00basic:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/env.d/00basic,v 1.11 2003/02/17 02:48:39 azarah Exp $

PATH="/usr/local/bin:/opt/bin"
ROOTPATH="/usr/local/bin:/opt/bin"
LDPATH="/usr/local/lib"
MANPATH="/usr/share/man:/usr/local/share/man"
INFODIR="/usr/share/info"
INFOPATH="/usr/share/info"
CVS_RSH="ssh"
PAGER="/usr/bin/less"
LESSOPEN="|lesspipe.sh %s"
LC_CTYPE="fr_FR"


Then I ran env-update so now french accents display well,
except right after login:
Code:

Login: toto
Password:
#                 // accents do not display correctly
# echo $LC_CTYPE
# fr_FR
# bash
# éèàù ....    // accents are fine


I guess the LC_CTYPE variable is set at the end of the bash initialization
(meaning too late) so bash does not recognize accents at the beginning.

Any help?
Back to top
View user's profile Send private message
eunuque
n00b
n00b


Joined: 19 Aug 2003
Posts: 62

PostPosted: Tue Nov 11, 2003 4:36 pm    Post subject: LC_TYPE="fr_FR" ok except for login bash Reply with quote

Finally the only solution I found is the brute force one. I added the
following lines at the end of my .bashrc:

Code:
# We restart the login shell one time because of french accents
if [ "$SHLVL" == '1'  ]
then
        exec bash --norc
fi
Back to top
View user's profile Send private message
DerMojo
Guru
Guru


Joined: 14 Aug 2003
Posts: 395
Location: Germany

PostPosted: Wed Nov 12, 2003 11:55 am    Post subject: Reply with quote

Have you tried to add LC_TYPE=... in /etc/profile ?
I did that with my LANG-variable, that works.
_________________
To err is human, to forgive, beyond the scope of the Operating System.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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