From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: OSX terminal, system-wide Chinese input methods Date: Fri, 21 Nov 2008 12:37:13 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227245079 30066 80.91.229.12 (21 Nov 2008 05:24:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Nov 2008 05:24:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 21 06:25:41 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L3OWP-0007cB-6Z for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Nov 2008 06:25:37 +0100 Original-Received: from localhost ([127.0.0.1]:51524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3OVG-0005Ml-0u for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Nov 2008 00:24:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3Nlk-00077b-7A for help-gnu-emacs@gnu.org; Thu, 20 Nov 2008 23:37:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3Nli-00077P-Ov for help-gnu-emacs@gnu.org; Thu, 20 Nov 2008 23:37:23 -0500 Original-Received: from [199.232.76.173] (port=45472 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3Nli-00077M-Jb for help-gnu-emacs@gnu.org; Thu, 20 Nov 2008 23:37:22 -0500 Original-Received: from ti-out-0910.google.com ([209.85.142.188]:28376) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L3Nli-0006KR-CA for help-gnu-emacs@gnu.org; Thu, 20 Nov 2008 23:37:22 -0500 Original-Received: by ti-out-0910.google.com with SMTP id u5so431191tia.10 for ; Thu, 20 Nov 2008 20:37:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=XA+r8h285kqtv2wwiMC3LuoYeOqFMhe0FalYJHRUOwg=; b=MvYAcesocn4Q31VI2s6msUkBkQ/0vmzGFyS49ES4VOqp7SNMMs5eZpobxnXYNspTHj GEfwez1AZFd53LHTJl2aPqfs0ymnTad70mVM3xrzlVjCn5QJhVmW4A09EpIH2ZDpZib9 L5xHuO5Ef+foyXQgt8sU94vE1kS7W4ZYRnAQ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=QtMf3QPfY/dpbD/6aFdDPdY4dSBQt6s9HTQVzvwP/gEIjsxBwDownbgxo0tZiAuHVp JcOmxvDt0QlcHnuiHS4PSnUrvo9JsDjeEGv7C26xR3+xA45fhs0LoqwSzgNXL2Vnjdei wThDVy7+aEi+kzkpu9cYJKQuDTK2Lu4A8QXEQ= Original-Received: by 10.110.43.16 with SMTP id q16mr137096tiq.2.1227242239053; Thu, 20 Nov 2008 20:37:19 -0800 (PST) Original-Received: from ?192.168.1.100? ([61.51.239.19]) by mx.google.com with ESMTPS id 2sm4104230tif.0.2008.11.20.20.37.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 20 Nov 2008 20:37:17 -0800 (PST) X-Mailer: Apple Mail (2.929.2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Fri, 21 Nov 2008 00:23:20 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59994 Archived-At: 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)