LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1072|回复: 8

DEBIAN/TESTING LOCALES ZH-UTF8 EMACS 不能显示中文,

[复制链接]
发表于 2006-2-27 15:06:23 | 显示全部楼层 |阅读模式
DEBIAN/TESTING  LOCALES  ZH-UTF8  EMACS 不能显示中文,
查了一些资料发现都是 针对 LOCALES GBK 的.
如何处理?
谢谢!!!!
发表于 2006-2-27 15:31:27 | 显示全部楼层
You can install emacs-snapshot-unicode in sid
回复 支持 反对

使用道具 举报

发表于 2006-2-27 18:22:59 | 显示全部楼层
  1. apt-get install emacs-snapshot
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-28 09:29:03 | 显示全部楼层
谢谢指点!!!

不过我没有用SID. 正在考虑.
我想 在 TESTING 的 LOCALES 设置上 调整一下.
因为 EMACS 主要用来 写 代码.  全部英文都行.
谁在这方面有经验?

附 LOCALES
lee@debian:~$ locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
回复 支持 反对

使用道具 举报

发表于 2006-2-28 10:53:15 | 显示全部楼层
我也是testing,utf-8环境,显示没问题。
就是不能用外加输入法输入中文,gnome的问题。
用emacs自带的输入法。

locale设定
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES=POSIX
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=

安装的包
emacs-goodies-el install
emacs-wiki  install
emacs21  install
emacs21-bin-common  install
emacs21-common  install
emacsen-common  install

.emacs中的设定

  1. (custom-set-variables
  2.   ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  3.   ;; Your init file should contain only one such instance.
  4. '(case-fold-search t)
  5. '(completion-ignored-extensions (quote ("~" ".aux" ".a" ".bbl" ".blg" ".dvi" ".elc" ".hc" ".hi" ".mlc" ".o" ".toc")))
  6. '(current-language-environment "Chinese-GB")
  7. '(default-input-method "chinese-py")
  8. '(emacs-wiki-coding-map (quote ((utf-8 "utf-8") (chinese-iso-8bit "euc-cn"))))
  9. '(emacs-wiki-footer-date-format "%Y-%02m-%02d %02H:%02M:%02S")
  10. '(emacs-wiki-maintainer "mailto:hjj@163.com")
  11. '(emacs-wiki-mode-hook (quote (emacs-wiki-use-font-lock emacs-wiki-highlight-buffer footnote-mode)))
  12. '(emacs-wiki-publishing-transforms nil)
  13. '(font-lock-maximum-size 512000)
  14. '(font-lock-mode-hook nil)
  15. '(frame-title-format (quote ("emacs - " (buffer-file-name "%f" ("%b")))) t)
  16. '(global-font-lock-mode t nil (font-lock))
  17. '(load-home-init-file t t)
  18. '(resize-minibuffer-mode t t)
  19. '(save-place nil nil (saveplace))
  20. '(show-paren-mode t nil (paren))
  21. '(time-stamp-format "%:y-%02m-%02d %02H:%02M:%02S %U")
  22. '(tooltip-gud-tips-p t)
  23. '(tooltip-use-echo-area t)
  24. '(uniquify-buffer-name-style nil))
  25. (custom-set-faces
  26.   ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  27.   ;; Your init file should contain only one such instance.
  28. '(tooltip ((((class color)) (:background "lightyellow")))))


  29. (custom-set-variables
  30.   ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  31.   ;; Your init file should contain only one such instance.
  32. '(case-fold-search t)
  33. '(completion-ignored-extensions (quote ("~" ".aux" ".a" ".bbl" ".blg" ".dvi" ".elc" ".hc" ".hi" ".mlc" ".o" ".toc")))
  34. '(current-language-environment "Chinese-GB")
  35. '(default-input-method "chinese-py")
  36. '(emacs-wiki-coding-map (quote ((utf-8 "utf-8") (chinese-iso-8bit "euc-cn"))))
  37. '(emacs-wiki-footer-date-format "%Y-%02m-%02d %02H:%02M:%02S")
  38. '(emacs-wiki-maintainer "mailto:hjj@163.com")
  39. '(emacs-wiki-mode-hook (quote (emacs-wiki-use-font-lock emacs-wiki-highlight-buffer footnote-mode)))
  40. '(emacs-wiki-publishing-transforms nil)
  41. '(font-lock-maximum-size 512000)
  42. '(font-lock-mode-hook nil)
  43. '(frame-title-format (quote ("emacs - " (buffer-file-name "%f" ("%b")))) t)
  44. '(global-font-lock-mode t nil (font-lock))
  45. '(load-home-init-file t t)
  46. '(resize-minibuffer-mode t t)
  47. '(save-place nil nil (saveplace))
  48. '(show-paren-mode t nil (paren))
  49. '(time-stamp-format "%:y-%02m-%02d %02H:%02M:%02S %U")
  50. '(tooltip-gud-tips-p t)
  51. '(tooltip-use-echo-area t)
  52. '(uniquify-buffer-name-style nil))
  53. (custom-set-faces
  54.   ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  55.   ;; Your init file should contain only one such instance.
  56. '(tooltip ((((class color)) (:background "lightyellow")))))
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-28 11:41:55 | 显示全部楼层
谢谢建议!!!

我对照安装了 上述 包. 并且 在 ~/  目录下 建了.emacs 文件.完全复制你的文件.
但是 仍然不能显示中文.  我分析是字体的的问题了. 我安装了MS 的 SIMSUN 用的也是 这玩艺.

继续探讨!!!

谢谢!!!1
回复 支持 反对

使用道具 举报

发表于 2006-2-28 22:02:02 | 显示全部楼层
你留个邮箱,我把我的整个配置文件发给你吧。
因为我还有其他的设定,时间久了,也不知道哪个是关于字体的了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-1 09:24:34 | 显示全部楼层
非常感谢!!!

leeshasr@gmail.com
回复 支持 反对

使用道具 举报

发表于 2006-7-24 17:11:25 | 显示全部楼层
老兄,给我也来一份,给这个苦恼很久,查考您试试!
atler731@163.com  
thank you!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表