2010年04月19日(月)


Chaned locales from ja_JP.eucJP to ja_JP.UTF-8 with ports/x11/rxvt-unicode

PC Arbeit :

1. Installed ports/x11/rxvt-unicode, so-called urxvt.

2. Add the below into ~/.Xresources.

URxvt.font: \
    [codeset=ISO8859]xft:Bitstream Vera Sans Mono:style=Roman:pixelsize=15,\
    [codeset=ISO10646]xft:Bitstream Vera Sans Mono:style=Roman:pixelsize=15,\
    [codeset=ISO10646]xft:M+2VM+IPAG circle:style=regular:pixelsize=15,\
    [codeset=JISX0201]xft:M+2VM+IPAG circle:style=regular:pixelsize=15,\
    [codeset=JISX0208]xft:M+2VM+IPAG circle:style=regular:pixelsize=15
URxvt*scrollBar: off
URxvt*foreground: #faf0e8
URxvt*background: #000000

3. Changed values of locale variables from ja_JP.eucJP to ja_JP.UTF-8.

export LANG=ja_JP.UTF-8
export LANGUAGE=${LANG}
export LC_CTYPE=ja_JP.UTF-8
export LC_COLLATE=${LC_CTYPE}
export LC_TIME=C
export LC_MESSAGES=${LC_TIME}
unset LC_ALL

4. Restarted X Window System and checked them working properly as I expected.

I had to start urxvt from the UTF-8 locale environment to see as urxvt showed proper fonts. It took several days till I found this. e.g.:

% locale
LANG=ja_JP.UTF-8
LC_CTYPE="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_TIME=C
LC_NUMERIC="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_MESSAGES=C
LC_ALL=

% urxvt

And make sure to type "urxvt", not "rxvt".

Symbol marks of Japanese fonts still have been displayed as blank squares and as Hankaku. The latter brings another problem that they appear as Hankaku but the cursor is to move Zenkaku width thereto breaks their appearances.



generated by makediary-2.11