From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Emacs failes to communicate with other X clients Date: Mon, 26 May 2003 13:54:37 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200305260454.NAA13809@etlken.m17n.org> References: <3405-Fri23May2003202207+0300-eliz@elta.co.il> <7458-Sat24May2003203851+0300-eliz@elta.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1053924824 25472 80.91.224.249 (26 May 2003 04:53:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 26 May 2003 04:53:44 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon May 26 06:53:42 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 19K9zS-0006ci-00 for ; Mon, 26 May 2003 06:53:42 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19KACV-00071K-00 for ; Mon, 26 May 2003 07:07:11 +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 19KA13-0008QP-LB for emacs-devel@quimby.gnus.org; Mon, 26 May 2003 00:55:21 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19KA0e-0008FO-EM for emacs-devel@gnu.org; Mon, 26 May 2003 00:54:56 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19KA0Z-0008EB-Gz for emacs-devel@gnu.org; Mon, 26 May 2003 00:54:52 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19KA0Y-00087S-Tr for emacs-devel@gnu.org; Mon, 26 May 2003 00:54:51 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h4Q4scu20419; Mon, 26 May 2003 13:54:38 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h4Q4sc913504; Mon, 26 May 2003 13:54:38 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id NAA13809; Mon, 26 May 2003 13:54:37 +0900 (JST) Original-To: huxw@knight.6test.edu.cn In-reply-to: (message from Robin Hu on Mon, 26 May 2003 02:56:54 +0000) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) 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:14268 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14268 In article , Robin Hu writes: > My point is that compound-text decoding should be left > to X itself, rather then by emacs itself. It should be > better be transparent to emacs, for better portable and > better extensible. > My patch implements this idea, it use > XmbTextPropertyToTextList to decode compound-text, then > delegate the result to selection_data_to_lisp_data, who > will call decode_region with chinese-gbk to translate gbk > coding characters to emacs-mule. It works fine for me > these days. XmbTextPropertyToTextList can handle only such compound-text that contains characters supported in the current X locale. So, in your way, if you are in GBK locale, Emacs can't receive, for instance, Hangul chacaters even if compound-text can correctly encode Hangul characters and Emacs itself can handle Hangul in any locales. So, I beleive we should avoid such kind of change. By the way, the coding system chinese-gbk is not yet supported in the current Emacs. Or, are you using emacs-unicode? --- Ken'ichi HANDA handa@m17n.org