Console charset [message #35567] |
Sun, 05 April 2009 14:41 |
laotse
Messages: 35 Registered: December 2008
|
Member |
|
|
Hi there,
is there a way to tell a container to use utf-8 as charset in the default "-bash" used for vzctl enter?
My native locale would be de_DE.utf8, which is configured as default on the node and works perfectly.
node#: echo "Süß"
Süß
node#: vzctl enter VE
VE#: <enter some umlaut, but nothing or strange things happen>
VE#: export LANG=de_DE.utf8
VE#: bash
VE#: echo "Süß"
Süß
So basically the container has everything installed what it takes to deal with UTF-8. However, "-bash" reports POSIX as locale and even after setting LC_LANG does not accept umlauts or does display them correctly. The child bash works as expected.
Of course /etc/default/locales contains the correct setting, but it is apparently ignored by "-bash".
Is this a bug or a feature? Is it possible to change this behaviour?
Er well, systems both node and VE are Debian Lenny current as per today.
Regards,
- lars
|
|
|
|
|
Re: Console charset [message #35628 is a reply to message #35612] |
Thu, 09 April 2009 11:23 |
laotse
Messages: 35 Registered: December 2008
|
Member |
|
|
tonib wrote on Wed, 08 April 2009 15:40 | Lars, can you input umlaut when you loged as lars (or whatewer user name you have) and not as root?
When I loged as normal user I can input Č芚Žž.
So the whole thing is just about passing $LANG.
We must initially set right $LANG for root and we win.
|
Yes, I encounter the same behaviour. Was tricky to test, since I'd got to find a container, which has local login users at all.
Okay, but I fear that this is a feature. I remember having had problems with the encoding of the root console all the while, i.e. on normal machines. I just don't notice it normally, because I'm using a root shell fired up by an ordinary user or ssh.
Anybody out there, who knows in more detail what's happening under the hood?
Regards,
- lars.
|
|
|