Chinaunix

标题: linux下使用 Ulipad 无法使用中文及打开包含中文的文件 [打印本页]

作者: lonelysoul011    时间: 2013-03-28 17:00
标题: linux下使用 Ulipad 无法使用中文及打开包含中文的文件
本帖最后由 lonelysoul011 于 2013-03-28 17:02 编辑

运行UliPad 后报错。但是小蝴蝶还是可以正常使用,只是无法打开包含中文的文件和输入中文。用vim 是可以的。

[root@localhost ~]# UliPad.py
begin... 16:45:43

(process:31609): Gdk-WARNING **: locale not supported by C library

(python:31609): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
end... 16:45:44


系统版本:
  1. [root@localhost ~]# lsb_release -a
  2. LSB Version:        :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
  3. Distributor ID:        RedHatEnterpriseServer
  4. Description:        Red Hat Enterprise Linux Server release 5.6 (Tikanga)
  5. Release:        5.6
  6. Codename:        Tikanga
  7. [root@localhost ~]# uname -a
  8. Linux localhost.localdomain 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
  9. [root@localhost ~]# python
  10. Python 2.6.6 (r266:84292, Mar 28 2013, 10:10:34)
  11. [GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2
  12. Type "help", "copyright", "credits" or "license" for more information.
  13. >>> exit()
复制代码
语言环境变量
  1. declare -x LANG="zh_CN.GB18030"
  2. declare -x LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"

  3. [root@localhost ~]# locale
  4. locale: Cannot set LC_CTYPE to default locale: No such file or directory
  5. locale: Cannot set LC_MESSAGES to default locale: No such file or directory
  6. locale: Cannot set LC_ALL to default locale: No such file or directory
  7. LANG=zh_CN.GB18030
  8. LC_CTYPE="en.utf8"
  9. LC_NUMERIC="en.utf8"
  10. LC_TIME="en.utf8"
  11. LC_COLLATE="en.utf8"
  12. LC_MONETARY="en.utf8"
  13. LC_MESSAGES="en.utf8"
  14. LC_PAPER="en.utf8"
  15. LC_NAME="en.utf8"
  16. LC_ADDRESS="en.utf8"
  17. LC_TELEPHONE="en.utf8"
  18. LC_MEASUREMENT="en.utf8"
  19. LC_IDENTIFICATION="en.utf8"
  20. LC_ALL=en.utf8
复制代码
哪位大哥碰到过,求助!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2