From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: 3.0.60; Can't paste from files with .arc extensions Date: Tue, 08 Apr 2008 15:37:13 +0900 Message-ID: References: <87hcedrpqq.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1207636668 11439 80.91.229.12 (8 Apr 2008 06:37:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Apr 2008 06:37:48 +0000 (UTC) Cc: info@lojic.com, 45@emacsbugs.donarmstrong.com, mange@freemail.hu, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 08 08:38:20 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jj7TH-0005Wb-Ro for ged-emacs-devel@m.gmane.org; Tue, 08 Apr 2008 08:38:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jj7Se-0001IB-Sl for ged-emacs-devel@m.gmane.org; Tue, 08 Apr 2008 02:37:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jj7Sa-0001Hv-3p for emacs-devel@gnu.org; Tue, 08 Apr 2008 02:37:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jj7SZ-0001Hj-Co for emacs-devel@gnu.org; Tue, 08 Apr 2008 02:37:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jj7SZ-0001Hg-9e for emacs-devel@gnu.org; Tue, 08 Apr 2008 02:37:35 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jj7SY-00087o-C6 for emacs-devel@gnu.org; Tue, 08 Apr 2008 02:37:34 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m386bEs7025859; Tue, 8 Apr 2008 15:37:14 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m386bENW016184; Tue, 8 Apr 2008 15:37:14 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id m386bDJ7008234; Tue, 8 Apr 2008 15:37:13 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1Jj7SD-0002tX-Hh; Tue, 08 Apr 2008 15:37:13 +0900 In-reply-to: <87hcedrpqq.fsf@stupidchicken.com> (message from Chong Yidong on Mon, 07 Apr 2008 23:26:37 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94673 Archived-At: In article <87hcedrpqq.fsf@stupidchicken.com>, Chong Yidong writes: > The problem seems to go away with the following patch to > xselect-convert-to-string, which changes the coding for unibyte string > from C_STRING back to STRING, the value prior to the Nov 18 change. But > I am unfamiliar with this part of the code. Could someone who knows > what is going on give an opinion (Handa-san)? The contents of unibyte buffer is typically binary data, and according to X's "Inter-Client Communication Conventions Manual", "STRING as a type or a target specifies the ISO Latin-1 char- acter set ...". So I chose C_STRING which is defined as: ------------------------------------------------------------ There are some text objects where the source or intended user, as the case may be, does not have a specific character set for the text, but instead merely requires a zero-termi- nated sequence of bytes with no other restriction; no ele- ment of the selection mechanism may assume that any byte value is forbidden or that any two differing sequences are equivalent. For these objects, the type C_STRING should be used. ------------------------------------------------------------ Why do you have to use a unibyte buffer? --- Kenichi Handa handa@ni.aist.go.jp