Unicode support on FreeBSD

Garrett Cooper youshi10 at u.washington.edu
Sun Dec 17 10:58:42 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

a at zeos.net wrote:
> CONSOLE
> 
> As we know, the console drivers atkbd and sc do not support unicode
> (in contrast to linux console drivers, for example).
> So we have to use programs able to translate unicode to a single byte
> code table. I use my PC successfully in such a manner.
> 
> X
> 
> You should set LC_CTYPE to ru_RU.UTF-8 (for russian) before running
> X programs, and you should have correct unicode support.
> I have the next line in .xinitrc:
> env LC_CTYPE=ru_RU.UTF-8 twm
> And I have no problem with X programs for years.
> 
> Elisej Babenko
> 
> 
> On Sat, Dec 16, 2006 at 10:10:08PM -0200, Henry Lenzi wrote:
>> On 12/16/06, ?$BJ8D; <bunchou at googlemail.com> wrote:
>>>>       It's worth noting that while this solution may work, it's an
>>>> add-on.
>>>>       The question of Unicode is complex; you should check for
>>>> relevant threads in the questions@ and i18n@ archives.
>>> I am using FreeBSD 6.1. with locale set to ja_JP.UTF-8
>> I'm sorry, I'm not following this discussion. To get Unicode support,
>> I should set my system to ja_JP.UTF8?!
>> My problem is cyrillic fonts; any help is aprreciated.
>>
>> Henry
>>
>> PS: Oh, and don't write back to me in Russian, please. I'm not there yet :-))

Funny how my thread sort of got hijacked.. hehe.

Anyhow, X11 apps are working perfectly fine, but rendering Japanese text
in xterm isn't working like it was under Gentoo. Time to install some
fonts I suppose or look into adding Japanese support for xterm.
uim/anthy isn't working 100% yet, but I'll force it to work sometime
soon :).

As for setting locales, you have to do it in whatever file you use to
pull in for starting X11, ~/.xinitrc, ~/.Xsession, etc. My .xinitrc:

export GTK_IM_MODULE=uim;
export XMODIFIERS=@im=uim;
export UIM_CANDWIN_PROG=uim-candwin-gtk;

xmodmap -e "pointer = 1 2 3 4 5 6 7 8 9" &
imwheel -f -k -p -b "67" &

uim-toolbar-gtk-systray &
exec xfce4-session
xscreensaver -no-splash &

- -Garrett
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhZL0EnKyINQw/HARAoUdAJwN22ltxoHHK1aS96+tClnzlH09vQCglIW6
vZdo8c7M7GuqVNN7R/mTILQ=
=QZBS
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list