[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:35694] localeでXアプリが異常な動き



ちゃんちゃんこです。

  libc6 を2.3.1-6 にアップデートしてから、ktermやjmodeなどでlocale (ja_JP.eucJP)を
認識しなくなり、強制的にLANG=Cとみなされてしまいます。

# Xを再起動したら、gnomeのメニューも英語になってしまいました…

  例えば、ktermを起動した場合、

> Warning: locale not supported by C library, locale unchanged.

 と出ますし、

 gtk_set_locale()の返事も"C"で返ってきます。(本来は"ja"で返ってくるはず)

 .bashrcと.xsessionを添付します (が、set-language-env -l ja -R で新しく
作っても状況は全く同じです。)

 どなたか、アドバイスをお願いします。

ちゃんちゃんこ

export OPENWINHOME=/usr/openwin
export PATH="/usr/local/bin:$PATH:/usr/bin/X11:/usr/TeX/bin:$OPENWINHOME/bin:/usr/games:/usr/local/games:/sbin:/usr/sbin:/usr/local/sbin:."
export PS1='\h:\w\$ '
export PS2='> '
export ignoreeof=10
export SHELL=${BASH-${SHELL-/bin/sh}}
export EDITOR=/usr/bin/jed
export PAGER=/usr/bin/lv
export LESS=-MM
#export LESSCHARSET=japanese-sjis
export MINICOM="-c on"
#export XMODIFIERS=@im=_XWNMO
#export XMODIFIERS=@im=kinput2
export XMODIFIERS=@im=jmode
export WNN_HOST=localhost
export JSERVER=localhost
#export LD_PRELOAD=/lib/libsafe.so.1
umask 022
if [ "$PS1" ]; then
	if [ "$EMACS" ]; then
		alias ls='ls -F'
	else
		alias ls='ls $LS_OPTIONS -b'
	fi
	alias	H='history 20'
	alias	hh='history | more'
	alias	P='pushd'
	alias	PP='pushd +2'
	alias	PPP='pushd +3'
	alias	R='popd'
	alias	jobs='jobs -l'
	alias	ll='ls -l'
	alias	la='ls -a'
	alias   dir='ls -l'
	alias	cp='cp -i'
	alias	mv='mv -i'
	alias	rm='rm -i'
	alias	more=less
	alias	mountcd='mount -r -t iso9660 /dev/cdrom /cdrom'
	alias	umountcd='umount /cdrom'
	alias	mountfd='mount -t msdos /dev/fd0 /fd'
	alias	umountfd='umount /fd'
#	alias	lpr='prn -j'
	set +o interactive-comments
fi
export LANG=ja_JP.eucJP
export LC_ALL=ja_JP.ecuJP
export LC_CTYPE=ja_LP.eucJP
export LC_MESSAGES=ja_LP.eucJP


#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

PATH="/bin:/usr/bin:/usr/bin/X11:/usr/games:/usr/local/bin"
PS1="\\$ "

export PATH PS1
#export LANG=ja_JP.mscode
#export LC_ALL=ja_JP.mscode
#export LC_MESSAGES=ja_JP.mscode
#export JLESSCHARSET=japanese-sjis

export LANG=ja_JP.EUC-JP
export LC_ALL=ja_JP.EUC-JP
export LC_MESSAGES=ja_JP.EUC-JP
export LC_CTYPE=ja_JP.EUC-JP
export JLESSCHARSET=japanese-euc
export GGI_DISPLAY=x11

export XMODIFIERS=@im=kinput2
#export XMODIFIERS=@im=jmode
export TZ=JST-9
export PAGER=/usr/bin/jless
export EDITOR=jed
export INFOPATH=/usr/info:/usr/share/info:/usr/local/info
export LD_LIBRALY_PATH=/usr/local/lib/mozilla/plugins:/usr/local/netscape/plugins:/lib:/usr/lib


userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

# start some nice programs
xstartsound=/usr/lib/X11/EmiClock/hajima_f.au

xsetroot -solid SteelBlue
#/usr/X11R6/bin/emiclock  &

if [ -e ${xstartsound} ] ; then
#   /usr/local/bin/wavplay ${xstartsound} & 
    cat ${xstartsound} >/dev/audio &	
    sleep 10
fi

#xset +dpms
#kinput2 -canna &
#kinput2-wnn &
#/usr/local/bin/jmode &
#xwnmo -lc ja_JP.mscode &
#jmode --gnome-applet &

#kterm -sb -sl 1000 -j +dfl -fk kanji16 -fn 10x20 -fr rk16 -fkb maru16 -fb maru16text -frb maru16kana -km sjis -sn -st -geometry 80x30 & 
#panel &
#xearth &
#twm
#fvwm
#fvwm95-2
#fvwm2
#gwm
#afterstep
#enlightenment
#wmaker
#sawfish

export WINDOW_MANAGER=sawfish
#enlightenment &
gnome-session
#sawfish
exit 0