unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: 锁住子 <girzel@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: OSX terminal, system-wide Chinese input methods
Date: Wed, 3 Dec 2008 02:10:33 -0800 (PST)	[thread overview]
Message-ID: <46c93daa-0998-4b69-ab6f-c48448d637d5@s9g2000prm.googlegroups.com> (raw)
In-Reply-To: mailman.929.1227262522.26697.help-gnu-emacs@gnu.org

On Nov 21, 6:15 pm, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
> Am 21.11.2008 um 05:37 schrieb Eric Abrahamsen:
>
> > (set-language-environment 'UTF-8)
>
> It might be better not to use this statement but have in the shell  
> from which you launch Carbon Emacs environment variables LANG and  
> LC_CTYPE which are set to some Chinese UTF-8 value, zh_TW.UTF-8,  
> zh_HK.UTF-8, zh_CN.UTF-8 – or can zh_CN.GB18030, zh_CN.GB2312,  
> zh_CN.GBK be more appropriate?
>
> Set-language-environment has many side-effects. If you're not content  
> with the new setup, you can use statements like
>
>         (prefer-coding-system 'utf-8-unix)
>         (prefer-coding-system 'utf-8)
>         (prefer-coding-system 'utf-8m)
>
> etc. to help Emacs do the right thing.

I think I've figured out another level to this problem -- when Chinese
input isn't working right, and then I use find-file to navigate into a
directory which is named in Chinese, I see the following in
*Messages*:

loading subst-gb2312...
loading subst-jis...

and a few other lines of that ilk, following which everything works
correctly. I've tried directly evaluating (load subst-gb2312) etc,
which simply produces an error. Does anyone know what this subst-*
means, and how I can load it automatically as a text-mode hook?

Thanks, Eric

>
> --
> Greetings
>
>    Pete
>
> Computers are good at following instructions, but not at reading your  
> mind.
>         - D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9



  parent reply	other threads:[~2008-12-03 10:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-21  4:37 OSX terminal, system-wide Chinese input methods Eric Abrahamsen
2008-11-21 10:15 ` Peter Dyballa
     [not found] ` <mailman.929.1227262522.26697.help-gnu-emacs@gnu.org>
2008-12-03 10:10   ` 锁住子 [this message]
2008-12-03 15:11     ` Peter Dyballa
     [not found]     ` <mailman.1838.1228317129.26697.help-gnu-emacs@gnu.org>
2008-12-03 15:55       ` poppyer
2008-12-03 18:25         ` Peter Dyballa
     [not found]         ` <mailman.1864.1228328775.26697.help-gnu-emacs@gnu.org>
2008-12-04  0:44           ` 锁住子

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46c93daa-0998-4b69-ab6f-c48448d637d5@s9g2000prm.googlegroups.com \
    --to=girzel@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).