From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Robin Hu Newsgroups: gmane.emacs.devel Subject: Re: Emacs failes to communicate with other X clients Date: Mon, 26 May 2003 06:06:52 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <3405-Fri23May2003202207+0300-eliz@elta.co.il> <7458-Sat24May2003203851+0300-eliz@elta.co.il> <200305260454.NAA13809@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053929195 5824 80.91.224.249 (26 May 2003 06:06:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 26 May 2003 06:06:35 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon May 26 08:06:33 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19KB7x-0001Vl-00 for ; Mon, 26 May 2003 08:06:33 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19KBL2-0007mB-00 for ; Mon, 26 May 2003 08:20:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19KB8z-0005ds-BR for emacs-devel@quimby.gnus.org; Mon, 26 May 2003 02:07:37 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19KB8A-0004ev-Qo for emacs-devel@gnu.org; Mon, 26 May 2003 02:06:46 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19KB7v-0003x9-V7 for emacs-devel@gnu.org; Mon, 26 May 2003 02:06:32 -0400 Original-Received: from [210.77.38.126] (helo=ns.turbolinux.com.cn) by monty-python.gnu.org with esmtp (Exim 4.20) id 19KB7q-0003Rf-VG for emacs-devel@gnu.org; Mon, 26 May 2003 02:06:27 -0400 Original-Received: from LOADLIN (gateway.cn.tlan [210.74.191.34]) (authenticated bits=0) by ns.turbolinux.com.cn (8.12.5/8.12.5) with ESMTP id h4Q6Al8q027672; Mon, 26 May 2003 14:10:48 +0800 Original-To: Kenichi Handa In-Reply-To: <200305260454.NAA13809@etlken.m17n.org> (Kenichi Handa's message of "Mon, 26 May 2003 13:54:37 +0900 (JST)") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt) Original-cc: eliz@elta.co.il X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14274 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14274 >>>>> "Kenichi" == Kenichi Handa writes: Kenichi> XmbTextPropertyToTextList can handle only such Kenichi> compound-text that contains characters supported in the Kenichi> current X locale. So, in your way, if you are in GBK Kenichi> locale, Emacs can't receive, for instance, Hangul chacaters Kenichi> even if compound-text can correctly encode Hangul Kenichi> characters and Emacs itself can handle Hangul in any Kenichi> locales. Thank you Kenichi for your answering ;-) But I still have some different ideas here. Of course Hangul characters can not be received when we set locale to zh_CN.GBK, but I think this is the right behavior. For example, while I set keyboard-coding-system to chinese-gbk, I can not input Hangul characters, because it's my responsibility to set correct keyboard coding system for chinese input. So I think that's also my responsibility to set correct locale for X paste. Another problem with current implementation is, some characters can be encoded in different char-settings. For example, I set file coding system to chinese-iso-8bit, and selection coding system to compound-text-with-extension, and copy/paste a very long chinese article from mozilla. Every thing seems to go fine, but this article just cannot be saved. This is because X encode some characters as if they are not chinese-iso-8bit characters, but emacs decode them to emacs-mule successfully, and finally file coding system cannot encode emacs-mule to chinese-iso-8bit. Kenichi> By the way, the coding system chinese-gbk is not yet Kenichi> supported in the current Emacs. Or, are you using Kenichi> emacs-unicode? Chinese-gbk is my extension to Emacs, I believe I have post it in m17n's maillist. I can read/write gbk encoding file, and unicode file with utf-translate-gbk-mode turned on. Everything goes fine, except copy/paste in X (ntEmacs is fine). ;-(