You are not logged in.
When I exec
su - in gnome-terminal
the result is garbled prompt. Before switch user command I have prompt:
[berni@laptop ~]$
and after su command I have prompt like this:
Ü0;root§laptop:ßÄroot§laptop ßÜ#
When I reset the terminal, the prompt is OK again and I have:
[root@laptop ~]#
In my .bashrc, as in root's .bashrc, I have
PS1='[u@h W]$ '
What could be the problem?
As berni user I have:
[berni@laptop ~]$ locale
LANG=hr_HR
LC_CTYPE="hr_HR"
LC_NUMERIC="hr_HR"
LC_TIME="hr_HR"
LC_COLLATE=C
LC_MONETARY="hr_HR"
LC_MESSAGES="hr_HR"
LC_PAPER="hr_HR"
LC_NAME="hr_HR"
LC_ADDRESS="hr_HR"
LC_TELEPHONE="hr_HR"
LC_MEASUREMENT="hr_HR"
LC_IDENTIFICATION="hr_HR"
LC_ALL=
but as root I have locale:
[root@laptop ~]# locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE=C
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=
Could this be the problem? Same thing is at my laptop as at my home desktop PC.
The problem happened before switch to the Xorg7 and I think it is much more related to the gnome upgrade.
I have done pacman -Syu and I dont have [testing] in my repository list.
Regards, Berni.
Offline
How you root locale is different than your user locale *-) ??
What is your LOCALE= in /etc/rc.conf ??
[My Blog] | [My Repo] | [My AUR Packages]
Offline
Guess this one is related:
http://bugs.archlinux.org/task/3035
Offline
How you root locale is different than your user locale *-) ??
What is your LOCALE= in /etc/rc.conf ??
OK, I didnt set LOCALE in rc.conf and that's why my locale differ from root's locale. I did set languge in gdm chooser.
I have corrected this and now root's locale is the same as berni's.
But that didn't make any difference. I still have to reset my gnome-terminal upon switch to root.
In aterm everything works OK, the prompt is correct.
Offline
I have found the cause.
In /etc/profile.d/locale.sh there are 3 lines:
export LANG=hr_HR.UTF-8
echo -ne "e%G"
echo -ne "e(K"
If I comment the last line, everything works fine, upon switch user I have normal prompt.
Anyone knows what these lines are for?
Offline
That's for some Unicode terminals... I opened a bug some time ago for this, it has been fixed (package initscripts) but I think they are in testing repo for now.
You can try to add this in your rc.local, to fix it :
echo export LANG=hr_HR.UTF-8 > /etc/profile.d/locale.sh
echo echo -ne "e%G" >> /etc/profile.d/locale.sh
Excessive showering, grooming, and toothbrushing is not only vain, it wastes valuable coding time.
Offline
Yes, this solved the problem. It's been anoying to go to the menu and reset terminal everytime I had to do something using the root account.
Than's everyone.
But, realy, why this happened only for the root user? Why not for the regular user?
Offline