Friday, December 15, 2006

Unicodifying FreeBSD

Actually :charset=UTF-8: and :lang=en_US.UTF-8: in your login.conf(5) (and don't forget about cap_mkdb(1)) are not quite enough. If you use a graphical login manager, like slim, it won't necessarily call login(1) and you won't get your environment variables. "export LANG=en_US.UTF-8 MM_CHARSET=UTF-8" in rc.conf(5) preconfigures environment for every rc(8) script and slim starts already in proper locale. Granted, it's hacky, but I'm not sure I know a better way. I've seen some issues with login.conf.db being regenerated automatically, but I still have to trace them.