From: Eric Abrahamsen <girzel@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: OSX terminal, system-wide Chinese input methods
Date: Fri, 21 Nov 2008 12:37:13 +0800 [thread overview]
Message-ID: <CC0C0488-FC05-4C9B-AB89-46551863C66B@gmail.com> (raw)
Hi there,
I'm having a Unicode-related problem which is particularly annoying
for being mysterious and only occasional. I use Emacs via Mac OSXs
terminal app. I do Chinese text entry using the QIM input method,
which is system-wide, under the input methods menu. MOST of the time,
Chinese input works correctly in Emacs, while sometimes it comes out
garbled. Pasting Chinese text into those buffers also result in
garbled text. Buffers sometimes start out garbled, but after I fiddle
around for a while, Chinese input suddenly works (it's never gone in
the other direction). I'm never really sure what I've done to get it
working, but it seems that newly-created buffers have this problem
more, while opening files that already have Chinese text in them never
causes problems. I use QIM for all programs and don't want to use the
Emacs-native input methods. This is my Emacs version:
GNU Emacs 22.3.1 (powerpc-apple-darwin9.4.0, Carbon Version 1.6.0)
And I've got the following in my .emacs file:
(set-language-environment 'UTF-8)
I also tend to use the TeX input method when editing text-based files.
I ran describe-coding-environment on two different buffers, the first
where Chinese input wasn't working, the second on a buffer where it
was. There's hardly any difference between the two, but I also noticed
that, after doing this, Chinese input HAD started working in the first
buffer, so maybe this is already meaningless. You can see my
confusion...
Thanks in advance for any hints,
Eric
Originally NOT working:
Coding system for saving this buffer:
u -- mule-utf-8 (alias: utf-8)
Default coding system (for new files):
u -- mule-utf-8 (alias: utf-8)
Coding system for keyboard input:
u -- utf-8 (alias of mule-utf-8)
Coding system for terminal output:
u -- utf-8 (alias of mule-utf-8)
Working from the start:
Coding system for saving this buffer:
u -- mule-utf-8-unix
Default coding system (for new files):
u -- mule-utf-8 (alias: utf-8)
Coding system for keyboard input:
u -- utf-8 (alias of mule-utf-8)
Coding system for terminal output:
u -- utf-8 (alias of mule-utf-8)
next reply other threads:[~2008-11-21 4:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-21 4:37 Eric Abrahamsen [this message]
2008-11-21 10:15 ` OSX terminal, system-wide Chinese input methods Peter Dyballa
[not found] ` <mailman.929.1227262522.26697.help-gnu-emacs@gnu.org>
2008-12-03 10:10 ` 锁住子
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CC0C0488-FC05-4C9B-AB89-46551863C66B@gmail.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.