anthyの環境変数

今週末にapt-get updateしたらanthyが起動しなくなった。原因は環境変数がja_JP.eucJPからCになった為だった。環境変数をja_JP.eucJPに戻すと起動するようになった。
しかし、挙動がおかしい。anthyをONにしたらhaで藤と入力されるし、ひらがなすらもうてない。原因は環境変数の起動順番だった。uim-ximを起動する前にUIM_IM_ENGINEを定義しなければいけなくなったらしい。下が、今の.xinitrcの内容。これで正常に動作するようになった。

# This must be declared before uim-xim
UIM_IM_ENGINE=anthy ; export UIM_IM_ENGINE

if type uim-xim &> /dev/null ; then
  uim-xim &
    fi

I did apt-get update on my debian on this weekend. And anthy became not working.
There were two reasons. One is my LANG was changed from ja_JP.eucJP to C. I fixed it and it worked again. But there was not still working well. I coudn't convert Hiragana and Kanji fine. The second reason was my sequence of initialization. UIM_IM_ENGINE had be declared before starting uim-xim. I also fixed and it works fine.