Hello!
I have recently installed FreeBSD 9.1-RELEASE, GENERIC Kernel, amd64, on my ThinkPad X230. It's running on wmware. I'm not using X11 at all, this is all on the console.
So, I have a problem setting the locale. I can't get the shell to use swedish character, åäö. When I type these keys, I get strange charactes instead, like the sigma symbol or the divisor symbol. There are only two accounts, the root and a user. Right now, I'm only trying to fix this for root, thinking, if I can make it work for root, I can apply similar changes to the user account. The root uses csh as It's shell. The user has bash as It's shell.
What I want is a system-wide change, enabling swedish character, preferable for all users.
In /etc/login.conf I have added, under the default, for classless users:
In /etc/rc.conf I have:
I know there is an example in /etc/login.conf, about using a login class, the example in that file is for russia (and could easily apply changes to swedish). I have not yet tried this, because, what I would like is to able to use swedish without a specific login class, it should just be the default.
When I run the command locale, this is the output:
All the other LC-types are set to the same. The LC-ALL is not set at all.
Could anyone shed some light on this subject? I have checked the handbook, but it does not really say that much more, other than sugesting using a loginclass.
Regards
//bmildh
I have recently installed FreeBSD 9.1-RELEASE, GENERIC Kernel, amd64, on my ThinkPad X230. It's running on wmware. I'm not using X11 at all, this is all on the console.
So, I have a problem setting the locale. I can't get the shell to use swedish character, åäö. When I type these keys, I get strange charactes instead, like the sigma symbol or the divisor symbol. There are only two accounts, the root and a user. Right now, I'm only trying to fix this for root, thinking, if I can make it work for root, I can apply similar changes to the user account. The root uses csh as It's shell. The user has bash as It's shell.
What I want is a system-wide change, enabling swedish character, preferable for all users.
In /etc/login.conf I have added, under the default, for classless users:
Code:
:charset=ISO8859-1:\
:LANG=sv_SE.8859-1:
In /etc/rc.conf I have:
Code:
keymap="swedish.iso"
font8x8="iso15-8x8"
font8x14="iso15-8x14"
font8x16="iso15-8x16"
I know there is an example in /etc/login.conf, about using a login class, the example in that file is for russia (and could easily apply changes to swedish). I have not yet tried this, because, what I would like is to able to use swedish without a specific login class, it should just be the default.
When I run the command locale, this is the output:
Code:
LANG=sv_SE.ISO8859-1
All the other LC-types are set to the same. The LC-ALL is not set at all.
Could anyone shed some light on this subject? I have checked the handbook, but it does not really say that much more, other than sugesting using a loginclass.
Regards
//bmildh