View previous topic :: View next topic |
Author |
Message |
eunuque n00b
Joined: 19 Aug 2003 Posts: 62
|
Posted: Mon Nov 10, 2003 10:43 pm Post subject: LC_TYPE="fr_FR" ok except for login bash |
|
|
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 |
|
|
eunuque n00b
Joined: 19 Aug 2003 Posts: 62
|
Posted: Tue Nov 11, 2003 4:36 pm Post subject: LC_TYPE="fr_FR" ok except for login bash |
|
|
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 |
|
|
DerMojo Guru
Joined: 14 Aug 2003 Posts: 395 Location: Germany
|
Posted: Wed Nov 12, 2003 11:55 am Post subject: |
|
|
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 |
|
|
|