08 March 2005

Solaris 10: JDS3 UTF-8 Behaviour giving you the blues?

Like me, you might be an application developer that has to be setup for a UTF-8 development environment, and needs to run their desktkop and everything in the en_US.UTF-8 locale. I do because I run a apache process under my own user account for my mod_perl development work.

You probably figured out that to do so you had to set LANG in your .profile or somewhere else. I set LANG=en_US.UTF-8 in /etc/default/init personally. However, once you did that, you were in for a somewhat unpleasant surprise in JDS. Enabling a UTF-8 based locale causes JDS to attempt to be "helpful", and stick a language input selection box at the bottom left hand corner of almost every dialog on your desktop. While that would be awesome if I needed the ability to type special accented characters, or switch languages on the fly, I don't. So for me, it was just a major visual annoyance.

However, thanks to some users on the Solaris x86 Yahoo Groups Mailing List, a fairly easy solution is at hand. Edit your ~/.dtprofile file and add the following lines at the bottom:


export XIM="htt"
export GTK_IM_MODULE=iiim
export XMODIFIERS="@im=${XIM}"


Now, logout and log back in. Voila! No more annoying language selection dialogs everywhere.

Related Blogs:

No comments: