Hi all,
First, I want to pardon my ignorance. Feel free to bash me (pun intended).
I've been reading about localization (https://docs.freebsd.org/en/books/handbook/l10n/#using-localization).
I've used the "Shell Startup File Method" (editing ~/.login_conf), but now that I'm more comfortable with FreeBSD I want to use the "Login Classes Method ". Same settings for every possible shell.
I need to use the letters æøå; so I need a non-default charset, more specifically nb_NO.UTF-8.
So what I have to do is apparently clear (as per handbook):
-
- add
-update,
If I now create a new user, the charset is not nb_NO.UTF-8. ÆØÅ does not work. I assume it is the default charset being used.
Additional question:
Are settings in /etc/login.conf only applied when a user is created? Or is it loaded every time a user logs in or every time the system boots? If I make a change in /etc/login.conf, how would I make those changes apply to existing users? I've been playing around to try to figure this out, but I'm confused.
Additional question #2
I thought the whole point of UTF-8 is that it's able to print/input all kind of characters. Why then, is necessary to specify a LanguageCode_CountryCode (as in LanguageCode_CountryCode.UTF-8)? Why does UTF-8 care about this?
I've read:
* login.conf(5)
* https://forums.freebsd.org/threads/freebsd-12-2-localization-issue.78664/
* https://forums.freebsd.org/threads/what-happened-to-etc-profile.78406/#post-489962
* https://forums.freebsd.org/threads/localization-and-character-set-in-console.62051/
* https://forums.freebsd.org/threads/setting-locale-accented-characters-in-console.71696/
Thanks for any enlightening inputs.
First, I want to pardon my ignorance. Feel free to bash me (pun intended).
I've been reading about localization (https://docs.freebsd.org/en/books/handbook/l10n/#using-localization).
I've used the "Shell Startup File Method" (editing ~/.login_conf), but now that I'm more comfortable with FreeBSD I want to use the "Login Classes Method ". Same settings for every possible shell.
I need to use the letters æøå; so I need a non-default charset, more specifically nb_NO.UTF-8.
So what I have to do is apparently clear (as per handbook):
-
vim /etc/login.conf
- add
:charset=nb_NO.UTF-8:
to the default class (all users on my system use this)-update,
cap_mkdb /etc/login.conf
If I now create a new user, the charset is not nb_NO.UTF-8. ÆØÅ does not work. I assume it is the default charset being used.
Additional question:
Are settings in /etc/login.conf only applied when a user is created? Or is it loaded every time a user logs in or every time the system boots? If I make a change in /etc/login.conf, how would I make those changes apply to existing users? I've been playing around to try to figure this out, but I'm confused.
Additional question #2
I thought the whole point of UTF-8 is that it's able to print/input all kind of characters. Why then, is necessary to specify a LanguageCode_CountryCode (as in LanguageCode_CountryCode.UTF-8)? Why does UTF-8 care about this?
I've read:
* login.conf(5)
* https://forums.freebsd.org/threads/freebsd-12-2-localization-issue.78664/
* https://forums.freebsd.org/threads/what-happened-to-etc-profile.78406/#post-489962
* https://forums.freebsd.org/threads/localization-and-character-set-in-console.62051/
* https://forums.freebsd.org/threads/setting-locale-accented-characters-in-console.71696/
Thanks for any enlightening inputs.