From unknown Mon Aug 18 11:08:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#45 <45@debbugs.gnu.org> To: bug#45 <45@debbugs.gnu.org> Subject: Status: 23.0.60; Can't paste from files with .arc extensions Reply-To: bug#45 <45@debbugs.gnu.org> Date: Mon, 18 Aug 2025 18:08:06 +0000 retitle 45 23.0.60; Can't paste from files with .arc extensions reassign 45 emacs submitter 45 Brian Adkins severity 45 normal thanks From monnier@iro.umontreal.ca Sun Mar 9 06:09:10 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 9 Mar 2008 13:09:11 +0000 Received: from ironport2-out.pppoe.ca (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m29D91pr011629 for ; Sun, 9 Mar 2008 06:09:02 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmgCALN900fO+J2CdGdsb2JhbACQfgEwVpcpgQc X-IronPort-AV: E=Sophos;i="4.25,469,1199682000"; d="scan'208";a="15759384" Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 09 Mar 2008 09:08:39 -0400 Received: from pastel.home ([206.248.157.130]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id PQR30739 for ; Sun, 09 Mar 2008 09:08:39 -0400 Received: by pastel.home (Postfix, from userid 20848) id A52A27FD4; Sun, 9 Mar 2008 09:08:38 -0400 (EDT) Resent-Message-ID: Resent-To: submit@debbugs.gnu.org Resent-From: Stefan Monnier Resent-Date: Sun, 09 Mar 2008 09:08:38 -0400 X-Original-To: monnier@iro.umontreal.ca Delivered-To: monnier@iro.umontreal.ca Received: from pinpin.iro.umontreal.ca (pinpin.iro.umontreal.ca [132.204.24.52]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id DBABF2CF79E for ; Sat, 8 Mar 2008 23:01:59 -0500 (EST) Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by pinpin.iro.umontreal.ca (Postfix) with ESMTP id 9BF683B8AA7 for ; Sat, 8 Mar 2008 23:01:48 -0500 (EST) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYCjM-0008SB-Ci for monnier@iro.umontreal.ca; Sat, 08 Mar 2008 23:01:48 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JY9BT-00024z-JJ for emacs-devel@gnu.org; Sat, 08 Mar 2008 19:14:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JY9BS-000237-Hx for emacs-devel@gnu.org; Sat, 08 Mar 2008 19:14:35 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JY9BS-00022h-Bl for emacs-devel@gnu.org; Sat, 08 Mar 2008 19:14:34 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JY9BR-00068n-Sf for emacs-devel@gnu.org; Sat, 08 Mar 2008 19:14:34 -0500 Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JY9BR-0004eC-MY for emacs-pretest-bug@gnu.org; Sat, 08 Mar 2008 19:14:33 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JY9BO-00067t-Bm for emacs-pretest-bug@gnu.org; Sat, 08 Mar 2008 19:14:33 -0500 Received: from rs48.luxsci.com ([65.61.166.92]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JY9BN-00067V-V2 for emacs-pretest-bug@gnu.org; Sat, 08 Mar 2008 19:14:30 -0500 Received: from [10.0.0.73] (adsl-068-209-204-112.sip.rdu.bellsouth.net [68.209.204.112]) (authenticated bits=0) by rs48.luxsci.com (8.13.1/8.13.7) with ESMTP id m290ERNK019874 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 8 Mar 2008 18:14:27 -0600 Message-ID: <47D32BE3.5000707@lojic.com> Date: Sat, 08 Mar 2008 19:14:27 -0500 From: Brian Adkins User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Sat, 08 Mar 2008 23:01:30 -0500 Cc: Subject: 23.0.60; Can't paste from files with .arc extensions 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: , Sender: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org Errors-To: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-1.94, requis 5, BAYES_00 -2.60, RECEIVED_FROM_NOUNK 0.66, SPF_HELO_PASS -0.00) X-DIRO-MailScanner-From: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org I discovered that I could not select text with the mouse and paste via middle-button click into a non-emacs window when the file in question had a .arc extension. Paul Graham's new Arc language uses .arc as an extension and this extension is associated with no-conversion in the auto-coding-alist variable as follows: auto-coding-alist is a variable defined in `mule.el'. Its value is (("\\.\\(arc\\|zip\\|lzh\\|lha\\|zoo\\|[jew]ar\\|xpi\\|exe\\|rar\\|ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|EXE\\|RAR\\)\\'" . no-conversion) ("\\.\\(sx[dmicw]\\|odt\\|tar\\|tgz\\)\\'" . no-conversion) ("\\.\\(gz\\|Z\\|bz\\|bz2\\|gpg\\)\\'" . no-conversion) ("\\.\\(jpe?g\\|png\\|gif\\|tiff?\\|p[bpgn]m\\)\\'" . no-conversion) ("\\.pdf\\'" . no-conversion) ("/#[^/]+#\\'" . emacs-mule)) I am able to fix the problem by removing arc from the auto-coding-alist, but someone on gnu.emacs.help suggested I should file a bug report regarding this behavior. Thanks, Brian Adkins In GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.12.0) of 2008-02-06 on airstream Windowing system distributor `The X.Org Foundation', version 11.0.10300000 configured using `configure '--enable-font-backend' '--with-gif=no'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t From mange@freemail.hu Tue Mar 11 16:04:59 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=0.9 required=4.0 tests=AWL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 45) by emacsbugs.donarmstrong.com; 11 Mar 2008 23:04:59 +0000 Received: from hermes.gsix.se (hermes.gsix.se [193.11.224.23]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m2BN4qV5028005 for <45@emacsbugs.donarmstrong.com>; Tue, 11 Mar 2008 16:04:53 -0700 Received: from etthundrat.olf.sgsnet.se ([193.11.222.85] helo=zemdatav.stor.no-ip.org) by hermes.gsix.se with esmtp (Exim 4.63) (envelope-from ) id 1JZDWE-0006np-Of for 45@emacsbugs.donarmstrong.com; Wed, 12 Mar 2008 00:04:26 +0100 Received: by zemdatav.stor.no-ip.org (Postfix, from userid 1000) id 4260743C13; Wed, 12 Mar 2008 00:04:20 +0100 (CET) From: Magnus Henoch To: 45@debbugs.gnu.org Subject: Could it be single-byteness? Jabber-Id: legoscia@jabber.cd.chalmers.se X-Hashcash: 1:23:080311:45@emacsbugs.donarmstrong.com::Z8xUc5S3LqzwxdqC:00000000000000000000000000000001EqaU Date: Wed, 12 Mar 2008 00:04:20 +0100 Message-ID: <87y78ouakr.fsf@freemail.hu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I recently encountered similar behaviour in completely different circumstances, but it struck me - is this bug caused by the single-byteness of the buffer? To reproduce: 1. Create a new buffer. 2. Make it single-byte with M-x toggle-enable-multibyte-characters 3. Write something and copy it with M-x clipboard-kill-ring-save 4. Try to paste it into Firefox with C-v For me, nothing happens in step 4. The same thing happpens with Brian's mouse-based recipe. Reenabling multibyte characters makes it work again. Magnus From mange@freemail.hu Tue Mar 11 16:26:02 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Status: No, score=1.9 required=4.0 tests=AWL,ONEWORD autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 45) by emacsbugs.donarmstrong.com; 11 Mar 2008 23:26:02 +0000 Received: from hermes.gsix.se (hermes.gsix.se [193.11.224.23]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m2BNPrWc031821; Tue, 11 Mar 2008 16:25:54 -0700 Received: from etthundrat.olf.sgsnet.se ([193.11.222.85] helo=zemdatav.stor.no-ip.org) by hermes.gsix.se with esmtp (Exim 4.63) (envelope-from ) id 1JZDqa-00071P-Bv; Wed, 12 Mar 2008 00:25:28 +0100 Received: by zemdatav.stor.no-ip.org (Postfix, from userid 1000) id 0E71D43C13; Wed, 12 Mar 2008 00:25:20 +0100 (CET) From: Magnus Henoch To: 45@debbugs.gnu.org, control@debbugs.gnu.org Subject: Hm... Jabber-Id: legoscia@jabber.cd.chalmers.se X-Hashcash: 1:23:080311:45@emacsbugs.donarmstrong.com::mZ+tDyyvwt62mTuV:00000000000000000000000000000000Fnr2 X-Hashcash: 1:23:080311:control@emacsbugs.donarmstrong.com::mZ+tDyyvwt62mTuV:000000000000000000000000000KD8F Date: Wed, 12 Mar 2008 00:25:19 +0100 Message-ID: <87tzjcu9ls.fsf@freemail.hu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii clone 45 -1 retitle 45 Can't paste from unibyte buffers retitle -1 Files with .arc extensions are treated as archives, not Arc source code thanks That was what I _really_ meant with my incoherent rambling... From monnier@iro.umontreal.ca Tue Mar 11 18:40:07 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Status: No, score=1.1 required=4.0 tests=AWL,ONEWORD autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 12 Mar 2008 01:40:07 +0000 Received: from ironport2-out.pppoe.ca (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m2C1e2jv017027 for ; Tue, 11 Mar 2008 18:40:04 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AugEAMfR1kfO+JwVUGdsb2JhbACQZgEBJxKXI4EH X-IronPort-AV: E=Sophos;i="4.25,483,1199682000"; d="scan'208";a="15889219" Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 11 Mar 2008 21:39:37 -0400 Received: from pastel.home ([206.248.156.21]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id SEZ33437 for ; Tue, 11 Mar 2008 21:39:37 -0400 Received: by pastel.home (Postfix, from userid 20848) id 125327F05; Tue, 11 Mar 2008 21:39:37 -0400 (EDT) From: Stefan Monnier To: control@debbugs.gnu.org Subject: toto Message-ID: Date: Tue, 11 Mar 2008 21:39:33 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii owner 45 Kenichi Handa thanks From cyd@stupidchicken.com Mon Apr 7 20:26:51 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Status: No, score=1.7 required=4.0 tests=AWL,FOURLA,MURPHY_DRUGS_REL8, RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 45) by emacsbugs.donarmstrong.com; 8 Apr 2008 03:26:51 +0000 Received: from furry (c-98-216-111-182.hsd1.ma.comcast.net [98.216.111.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m383QmTN023083 for <45@emacsbugs.donarmstrong.com>; Mon, 7 Apr 2008 20:26:49 -0700 Received: by furry (Postfix, from userid 1000) id 9863CC047; Mon, 7 Apr 2008 23:26:37 -0400 (EDT) From: Chong Yidong To: Kenichi Handa , 45@debbugs.gnu.org, emacs-devel@gnu.org Cc: Magnus Henoch , Brian Adkins Subject: Re: 3.0.60; Can't paste from files with .arc extensions Date: Mon, 07 Apr 2008 23:26:37 -0400 Message-ID: <87hcedrpqq.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Magnus Henoch wrote: > 1. Create a new buffer. > 2. Make it single-byte with M-x toggle-enable-multibyte-characters > 3. Write something and copy it with M-x clipboard-kill-ring-save > 4. Try to paste it into Firefox with C-v > > For me, nothing happens in step 4. This bug arises from the following checkin, introduced to the unicode-2 branch on Nov 18 and subsequently merged to the trunk: 2008-02-01 Kenichi Handa * select.el (selection-coding-system, next-selection-coding-system): Move declarations from xselect.c. (x-get-selection): Decode by selection-coding-system if it is non-nil. If it is nil, decode by a proper coding system. Handle C_STRING. (ccl-check-utf-8, string-utf-8-p): Delete them. (xselect-convert-to-string): Fix determining data-type in the case that TEXT is requested. Don't use selection-coding-system if it's not proper for the data-type. 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)? *** trunk/lisp/select.el.~1.39.~ 2008-02-08 15:16:35.000000000 -0500 --- trunk/lisp/select.el 2008-04-07 23:15:34.000000000 -0400 *************** *** 243,249 **** (remove-text-properties 0 (length str) '(composition nil) str) (if (not (multibyte-string-p str)) ;; Don't have to encode unibyte string. ! (setq type 'C_STRING) (if (eq type 'TEXT) ;; TEXT is a polimorphic target. We must select the ;; actual type from `UTF8_STRING', `COMPOUND_TEXT', --- 243,249 ---- (remove-text-properties 0 (length str) '(composition nil) str) (if (not (multibyte-string-p str)) ;; Don't have to encode unibyte string. ! (setq type 'STRING) (if (eq type 'TEXT) ;; TEXT is a polimorphic target. We must select the ;; actual type from `UTF8_STRING', `COMPOUND_TEXT', From handa@m17n.org Mon Apr 7 23:37:21 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Status: No, score=1.6 required=4.0 tests=AWL,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 45) by emacsbugs.donarmstrong.com; 8 Apr 2008 06:37:22 +0000 Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m386bI1o020293 for <45@emacsbugs.donarmstrong.com>; Mon, 7 Apr 2008 23:37:19 -0700 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) 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) Received: by smtp1.aist.go.jp with ESMTP id m386bDJ7008234; Tue, 8 Apr 2008 15:37:13 +0900 (JST) env-from (handa@m17n.org) 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 From: Kenichi Handa To: Chong Yidong CC: 45@debbugs.gnu.org, emacs-devel@gnu.org, info@lojic.com, mange@freemail.hu In-reply-to: <87hcedrpqq.fsf@stupidchicken.com> (message from Chong Yidong on Mon, 07 Apr 2008 23:26:37 -0400) Subject: Re: 3.0.60; Can't paste from files with .arc extensions References: <87hcedrpqq.fsf@stupidchicken.com> 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) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Message-Id: Date: Tue, 08 Apr 2008 15:37:13 +0900 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 From cyd@stupidchicken.com Wed Apr 9 19:43:33 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=0.1 required=4.0 tests=AWL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 45) by emacsbugs.donarmstrong.com; 10 Apr 2008 02:43:33 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3A2hROp012951 for <45@emacsbugs.donarmstrong.com>; Wed, 9 Apr 2008 19:43:29 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 5E2EF4E3FC; Wed, 9 Apr 2008 22:39:33 -0400 (EDT) From: Chong Yidong To: 45@debbugs.gnu.org Subject: Re: 23.0.60; Can't paste from files with .arc extensions Date: Wed, 09 Apr 2008 22:39:33 -0400 Message-ID: <87lk3m302i.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii severity 45 wontfix OK, we'll leave the matter as it stands. Tagging as wontfix. From monnier@iro.umontreal.ca Thu Apr 10 11:26:55 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-0.4 required=4.0 tests=AWL,HAS_BUG_NUMBER, HELO_LH_HOME,RDNS_DYNAMIC autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 45) by emacsbugs.donarmstrong.com; 10 Apr 2008 18:26:55 +0000 Received: from ceviche.home (vpn-132-204-232-124.acd.umontreal.ca [132.204.232.124]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3AIQpU8002255 for <45@emacsbugs.donarmstrong.com>; Thu, 10 Apr 2008 11:26:53 -0700 Received: by ceviche.home (Postfix, from userid 20848) id 63144B46FF; Thu, 10 Apr 2008 14:26:53 -0400 (EDT) From: Stefan Monnier To: Chong Yidong Cc: 45@debbugs.gnu.org Subject: Re: bug#45: 23.0.60; Can't paste from files with .arc extensions Message-ID: References: <87lk3m302i.fsf@stupidchicken.com> Date: Thu, 10 Apr 2008 14:26:53 -0400 In-Reply-To: <87lk3m302i.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 09 Apr 2008 22:39:33 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > OK, we'll leave the matter as it stands. Tagging as wontfix. Not sure if I agree with this. Which applications accept the C_STRING? I mean, if Firefox doesn't accept it, it's likely many others refuse it as well. Why not treat the binary as Latin-1 and sent it as STRING? Are there cases where it's known to cause problems? Stefan From cyd@stupidchicken.com Thu Apr 10 13:07:19 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.4 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 45) by emacsbugs.donarmstrong.com; 10 Apr 2008 20:07:19 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3AK7GbS003628 for <45@emacsbugs.donarmstrong.com>; Thu, 10 Apr 2008 13:07:17 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 5E6BA4E3FC; Thu, 10 Apr 2008 16:03:19 -0400 (EDT) From: Chong Yidong To: Stefan Monnier , Kenichi Handa Cc: 45@debbugs.gnu.org Subject: Re: bug#45: 23.0.60; Can't paste from files with .arc extensions References: <87lk3m302i.fsf@stupidchicken.com> Date: Thu, 10 Apr 2008 16:03:19 -0400 In-Reply-To: (Stefan Monnier's message of "Thu, 10 Apr 2008 14:26:53 -0400") Message-ID: <87myo1eauw.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Stefan Monnier writes: >> OK, we'll leave the matter as it stands. Tagging as wontfix. > > Not sure if I agree with this. > Which applications accept the C_STRING? > I mean, if Firefox doesn't accept it, it's likely many others refuse it > as well. Why not treat the binary as Latin-1 and sent it as STRING? > > Are there cases where it's known to cause problems? Apart from Firefox, GTK applications don't accept C_STRING, while xterm does. IIUC, Handa's argument is that a unibyte buffer typically represents binary data, so it's more correct to tag it as C_STRING. If other applications choose to refuse C_STRING because they don't think it generally maps to Latin-1 output, that's their choice. From monnier@iro.umontreal.ca Thu Apr 10 14:19:16 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-0.3 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER, HELO_LH_HOME,RDNS_DYNAMIC autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 45) by emacsbugs.donarmstrong.com; 10 Apr 2008 21:19:16 +0000 Received: from ceviche.home (vpn-132-204-232-110.acd.umontreal.ca [132.204.232.110]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3ALJCkx027237 for <45@emacsbugs.donarmstrong.com>; Thu, 10 Apr 2008 14:19:14 -0700 Received: by ceviche.home (Postfix, from userid 20848) id 06499B4055; Thu, 10 Apr 2008 17:19:14 -0400 (EDT) From: Stefan Monnier To: Chong Yidong Cc: Kenichi Handa , 45@debbugs.gnu.org Subject: Re: bug#45: 23.0.60; Can't paste from files with .arc extensions Message-ID: References: <87lk3m302i.fsf@stupidchicken.com> <87myo1eauw.fsf@stupidchicken.com> Date: Thu, 10 Apr 2008 17:19:14 -0400 In-Reply-To: <87myo1eauw.fsf@stupidchicken.com> (Chong Yidong's message of "Thu, 10 Apr 2008 16:03:19 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>> OK, we'll leave the matter as it stands. Tagging as wontfix. >> >> Not sure if I agree with this. >> Which applications accept the C_STRING? >> I mean, if Firefox doesn't accept it, it's likely many others refuse it >> as well. Why not treat the binary as Latin-1 and sent it as STRING? >> >> Are there cases where it's known to cause problems? > Apart from Firefox, GTK applications don't accept C_STRING, while xterm > does. > IIUC, Handa's argument is that a unibyte buffer typically represents > binary data, so it's more correct to tag it as C_STRING. If other > applications choose to refuse C_STRING because they don't think it > generally maps to Latin-1 output, that's their choice. I understand that. It's the theory. The practice is that it implies that cut&paste fails between Emacs and Gtk applications in some cases. Maybe it's OK. But it's a definite downside. What would be the downside *in practice* of labelling our binary data as STRING (i.e. latin-1)? Stefan From handa@m17n.org Thu Apr 10 20:57:24 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-0.8 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 45) by emacsbugs.donarmstrong.com; 11 Apr 2008 03:57:24 +0000 Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3B3vKDK031683 for <45@emacsbugs.donarmstrong.com>; Thu, 10 Apr 2008 20:57:21 -0700 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id m3B3vEW9028669; Fri, 11 Apr 2008 12:57:14 +0900 (JST) env-from (handa@m17n.org) Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id m3B3vEdK004982; Fri, 11 Apr 2008 12:57:14 +0900 (JST) env-from (handa@m17n.org) Received: by smtp4.aist.go.jp with ESMTP id m3B3vDcv002060; Fri, 11 Apr 2008 12:57:13 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1JkAO1-0004Ie-Ka; Fri, 11 Apr 2008 12:57:13 +0900 From: Kenichi Handa To: Chong Yidong CC: monnier@iro.umontreal.ca, 45@debbugs.gnu.org In-reply-to: <87myo1eauw.fsf@stupidchicken.com> (message from Chong Yidong on Thu, 10 Apr 2008 16:03:19 -0400) Subject: Re: bug#45: 23.0.60; Can't paste from files with .arc extensions References: <87lk3m302i.fsf@stupidchicken.com> <87myo1eauw.fsf@stupidchicken.com> 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) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Message-Id: Date: Fri, 11 Apr 2008 12:57:13 +0900 In article <87myo1eauw.fsf@stupidchicken.com>, Chong Yidong writes: > Apart from Firefox, GTK applications don't accept C_STRING, while xterm > does. > IIUC, Handa's argument is that a unibyte buffer typically represents > binary data, so it's more correct to tag it as C_STRING. If other > applications choose to refuse C_STRING because they don't think it > generally maps to Latin-1 output, that's their choice. I think the attached patch will solve the problem. It does this: If TEXT is requested, selecte C_STRING for unibyte buffer/string. If an application doesn't like C_STRING, it will request again with STRING or COMPOUND_TEXT. In such a case, follow what requested. --- Kenichi Handa handa@ni.aist.go.jp *** select.el.~1.39.~ 2008-02-09 05:16:35.000000000 +0900 --- select.el 2008-04-11 12:48:19.000000000 +0900 *************** *** 241,253 **** (let ((inhibit-read-only t)) ;; Suppress producing escape sequences for compositions. (remove-text-properties 0 (length str) '(composition nil) str) ! (if (not (multibyte-string-p str)) ! ;; Don't have to encode unibyte string. ! (setq type 'C_STRING) ! (if (eq type 'TEXT) ! ;; TEXT is a polimorphic target. We must select the ! ;; actual type from `UTF8_STRING', `COMPOUND_TEXT', ! ;; `STRING', and `C_STRING'. (let (non-latin-1 non-unicode eight-bit) (mapc #'(lambda (x) (if (>= x #x100) --- 241,252 ---- (let ((inhibit-read-only t)) ;; Suppress producing escape sequences for compositions. (remove-text-properties 0 (length str) '(composition nil) str) ! (if (eq type 'TEXT) ! ;; TEXT is a polimorphic target. We must select the ! ;; actual type from `UTF8_STRING', `COMPOUND_TEXT', ! ;; `STRING', and `C_STRING'. ! (if (not (multibyte-string-p str)) ! (setq type 'C_STRING) (let (non-latin-1 non-unicode eight-bit) (mapc #'(lambda (x) (if (>= x #x100) *************** *** 259,290 **** str) (setq type (if non-unicode 'COMPOUND_TEXT (if non-latin-1 'UTF8_STRING ! (if eight-bit 'C_STRING 'STRING)))))) ! (cond ! ((eq type 'UTF8_STRING) ! (if (or (not coding) ! (not (eq (coding-system-type coding) 'utf-8))) ! (setq coding 'utf-8)) ! (setq str (encode-coding-string str coding))) ! ! ((eq type 'STRING) ! (if (or (not coding) ! (not (eq (coding-system-type coding) 'charset))) ! (setq coding 'iso-8859-1)) ! (setq str (encode-coding-string str coding))) ! ! ((eq type 'COMPOUND_TEXT) ! (if (or (not coding) ! (not (eq (coding-system-type coding) 'iso-2022))) ! (setq coding 'compound-text-with-extensions)) ! (setq str (encode-coding-string str coding))) ! ! ((eq type 'C_STRING) ! (setq str (string-make-unibyte str))) ! ! (t ! (error "Unknow selection type: %S" type)) ! )))) (setq next-selection-coding-system nil) (cons type str)))) --- 258,289 ---- str) (setq type (if non-unicode 'COMPOUND_TEXT (if non-latin-1 'UTF8_STRING ! (if eight-bit 'C_STRING 'STRING))))))) ! (cond ! ((eq type 'UTF8_STRING) ! (if (or (not coding) ! (not (eq (coding-system-type coding) 'utf-8))) ! (setq coding 'utf-8)) ! (setq str (encode-coding-string str coding))) ! ! ((eq type 'STRING) ! (if (or (not coding) ! (not (eq (coding-system-type coding) 'charset))) ! (setq coding 'iso-8859-1)) ! (setq str (encode-coding-string str coding))) ! ! ((eq type 'COMPOUND_TEXT) ! (if (or (not coding) ! (not (eq (coding-system-type coding) 'iso-2022))) ! (setq coding 'compound-text-with-extensions)) ! (setq str (encode-coding-string str coding))) ! ! ((eq type 'C_STRING) ! (setq str (string-make-unibyte str))) ! ! (t ! (error "Unknow selection type: %S" type)) ! ))) (setq next-selection-coding-system nil) (cons type str)))) From cyd@stupidchicken.com Tue Apr 15 06:29:36 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.0 tests=FOURLA,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 45) by emacsbugs.donarmstrong.com; 15 Apr 2008 13:29:36 +0000 Received: from mailfilter4.centennialpr.net (mailfilter4o.centennialpr.net [66.231.170.145]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3FDTWdI014672 for <45@emacsbugs.donarmstrong.com>; Tue, 15 Apr 2008 06:29:33 -0700 Received: from ptr.centennialpr.net (HELO furry) ([65.38.200.139]) by mailfilter4.centennialpr.net with SMTP; 15 Apr 2008 09:29:26 -0400 X-SBRS: None X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAAJKBEhBJsiL/2dsb2JhbACtFQQ X-IronPort-AV: i="4.25,660,1199678400"; d="scan'208"; a="169227118:sNHT269279438" Received: by furry (Postfix, from userid 1000) id F33E0C047; Tue, 15 Apr 2008 09:29:20 -0400 (EDT) From: Chong Yidong To: Kenichi Handa Cc: 45@debbugs.gnu.org Subject: Re: bug#45: 23.0.60; Can't paste from files with .arc extensions Date: Tue, 15 Apr 2008 09:29:20 -0400 Message-ID: <8763ujdz67.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > I think the attached patch will solve the problem. It does > this: > If TEXT is requested, selecte C_STRING for unibyte > buffer/string. If an application doesn't like C_STRING, it > will request again with STRING or COMPOUND_TEXT. In such a > case, follow what requested. Looks good. Please install it (and mark this bug as closed). Thanks! From cyd@stupidchicken.com Sun Apr 20 19:02:42 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Status: No, score=1.1 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 45-done) by emacsbugs.donarmstrong.com; 21 Apr 2008 02:02:42 +0000 Received: from furry (c-98-216-111-182.hsd1.ma.comcast.net [98.216.111.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3L22dm9013398 for <45-done@emacsbugs.donarmstrong.com>; Sun, 20 Apr 2008 19:02:40 -0700 Received: by furry (Postfix, from userid 1000) id 23880C047; Sun, 20 Apr 2008 22:02:34 -0400 (EDT) From: Chong Yidong To: Kenichi Handa Cc: monnier@iro.umontreal.ca, 45-done@debbugs.gnu.org Subject: Re: bug#45: 23.0.60; Can't paste from files with .arc extensions References: <87lk3m302i.fsf@stupidchicken.com> <87myo1eauw.fsf@stupidchicken.com> Date: Sun, 20 Apr 2008 22:02:34 -0400 In-Reply-To: (Kenichi Handa's message of "Fri, 11 Apr 2008 12:57:13 +0900") Message-ID: <87hcdw6k3p.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > I think the attached patch will solve the problem. It does > this: > > If TEXT is requested, selecte C_STRING for unibyte > buffer/string. If an application doesn't like C_STRING, it > will request again with STRING or COMPOUND_TEXT. In such a > case, follow what requested. I checked in the patch. Thanks. From unknown Mon Aug 18 11:08:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Mon, 19 May 2008 14:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 29 14:06:48 2010 Received: (at control) by debbugs.gnu.org; 29 Jan 2010 19:06:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NawB6-0006Th-CT for submit@debbugs.gnu.org; Fri, 29 Jan 2010 14:06:48 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NawB3-0006TR-9S for control@debbugs.gnu.org; Fri, 29 Jan 2010 14:06:47 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NawAz-0008CX-1L; Fri, 29 Jan 2010 14:06:41 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19299.12736.832508.282592@fencepost.gnu.org> Date: Fri, 29 Jan 2010 14:06:40 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: blue X-Ran: VO&ud[`?6f;MPwH!mdZU0Da5EQb;q|^:M@[G'\N`mS1c#>^/W4D}F4Lh'i,;0o1zMzi=T& X-Debbugs-No-Ack: yes X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) noowner 644 noowner 193 noowner 341 noowner 523 noowner 299 noowner 50 unarchive 113 noowner 113 reassign 113 emacs,cc-mode unarchive 512 noowner 512 unarchive 13 noowner 13 reassign 13 emacs,cc-mode unarchive 17 unmerge 17 noowner 16 unarchive 343 noowner 343 reassign 343 emacs,cc-mode unarchive 145 noowner 145 unarchive 45 noowner 45 unarchive 53 noowner 53 From unknown Mon Aug 18 11:08:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 27 Feb 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator