LinuxSir.cn,穿越时空的Linuxsir!

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

兄弟们谁能帮忙贴一下locales和.emacs设置,我gnus的中文不正常:(

[复制链接]
发表于 2004-12-17 11:42:57 | 显示全部楼层 |阅读模式
我用Gnus阅读新闻组时,中文显示成方块,但emacs能正常显示和输入中文,
哪位的都能正常显示,帮忙把locales和.emacs还有.gnus.el都贴一下吧,感激不尽...
发表于 2004-12-18 20:36:46 | 显示全部楼层
apt-get install mule-gbk,里面的doc文件有说,
我复制粘贴了一下其中的内容

Gnus setup

  Be patient to read up this section!!!

  In Gnus(running in GNU Emacs21), the mime charset to encode the
text is determined by a property `mime-charset' of the current coding
system of the text buffer, which is not specified in coding system
`Chinese-gbk' of the old versions of mule-gbk, so that Gnus encoded
the GBK text with wrong coding system. It has been fixed since
mule-gbk 0.1.2004062701.

  And the encoding system to decode the text of the mail is determine
by the `charset=...' information in the mail header.

  For GBK support, we need to evaluate the following Elisp codes
before Gnus loads up.

    ;; For GBK
    (eval-after-load "mm-util"
      '(setq mm-charset-synonym-alist
             (append
              '((x-gbk       . gbk)
                (cp936       . gbk)
                (ms936       . gbk)
                (windows-936 . gbk))
              mm-charset-synonym-alist)))

  Because the file `mm-util.el' in Gnus, which defines
`mm-charset-synonym-of-gbk-alist' is also a part of GNU Emacs, we
added the above setup for Gnus into `mule-gbk.el'. Thus, the only
task left to you is to make sure that mule-gbk is loaded before the
library `mm-util'(or Gnus)

  This setup has been simply tested on Gnus 5.10.6 w/ GNU Emacs 21.3.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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