问题:文本模式下无鼠标
Traceback (most recent call last):File "usr/share/redhat-config-mouse/redhat-config-mouse.py",line 69, in ? useTextMode().
File "usr/share/redhat-config-mouse/redhat-config-mouse.py",line 22, in ? useTextMode().
inport mouse_tui
File "usr/share/redhat-config-mouse/mouse_tui.py",line 31, in ? locale.set locale(locale.LC_ALL,"").
File "usr/lib/python2.2/local.py", line 372, in setlocale return_setlocal(category,locale).
locale.Error:locale setting not supported
上面是错误代码
是不是我的鼠标不支持? locale.Error:locale setting not supported
是locale设置的错误.可以输入命令locale看一下locale的设置
用
export $LC_ALL="zh_CN.GB2312"
就可以将locale改为zh_CN.GB2312 或是其它. 看了楼上的回复,用locale查看地一下,代码如下:
LANG=zh_CN.GB18030
LC_CTYPE="zh_CN.GB18030"
LC_NUMERIC="zh_CN.GB18030"
LC_TIME="zh_CN.GB18030"
LC_COLLATE="zh_CN.GB18030"
LC_MONETARY="zh_CN.GB18030"
LC_MESSAGES="zh_CN.GB18030"
LC_PAPER="zh_CN.GB18030"
LC_NAME="zh_CN.GB18030"
LC_ADDRESS="zh_CN.GB18030"
LC_TELEPHONE="zh_CN.GB18030"
LC_MEASUREMENT="zh_CN.GB18030"
LC_IDENTIFICATION="zh_CN.GB18030"
LC_ALL=
执行你说的命令:export $LC_ALL="zh_CN.GB2312"
提示错误:
# export $LC_ALL="zh_CN.GB2312"
bash: export: `=zh_CN.GB2312': not a valid identifier 问题还是没解决!
页:
[1]