From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Emacs puts binary junk into the clipboard, marking it as text Date: Sat, 16 Sep 2006 19:25:20 +0200 Message-ID: <450C3380.2050008@swipnet.se> References: <1158280855.14121.69.camel@chrislap.madeupdomain.com> <450A514E.6020205@swipnet.se> <450BE084.10905@swipnet.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1158427568 28305 80.91.229.2 (16 Sep 2006 17:26:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Sep 2006 17:26:08 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Kevin Rodgers , richard.stallman@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 16 19:26:05 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GOdvY-0001UB-SO for ged-emacs-devel@m.gmane.org; Sat, 16 Sep 2006 19:26:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GOdvY-0000fW-Bt for ged-emacs-devel@m.gmane.org; Sat, 16 Sep 2006 13:26:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GOdvK-0000dk-Gd for emacs-devel@gnu.org; Sat, 16 Sep 2006 13:25:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GOdvI-0000Zv-SL for emacs-devel@gnu.org; Sat, 16 Sep 2006 13:25:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GOdvI-0000Zj-NK; Sat, 16 Sep 2006 13:25:48 -0400 Original-Received: from [81.228.9.180] (helo=av6-2-sn3.vrr.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GOdxj-0007fz-My; Sat, 16 Sep 2006 13:28:19 -0400 Original-Received: by av6-2-sn3.vrr.skanova.net (Postfix, from userid 502) id 9D6A838166; Sat, 16 Sep 2006 19:25:47 +0200 (CEST) Original-Received: from smtp3-2-sn3.vrr.skanova.net (smtp3-2-sn3.vrr.skanova.net [81.228.9.102]) by av6-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 8E0AC3800C; Sat, 16 Sep 2006 19:25:47 +0200 (CEST) Original-Received: from coolsville.localdomain (81-235-205-78-no59.tbcn.telia.com [81.235.205.78]) by smtp3-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 6AC2037E46; Sat, 16 Sep 2006 19:25:47 +0200 (CEST) User-Agent: Thunderbird 1.5.0.7 (X11/20060909) Original-To: christopher.ian.moore@gmail.com In-Reply-To: <450BE084.10905@swipnet.se> 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:59914 gmane.emacs.pretest.bugs:13947 Archived-At: Jan D. wrote: > Kevin Rodgers wrote: >> Jan Dj=E4rv wrote: >>> >>> >>> Chris Moore skrev: >>>> A very simple case which reproduces the bug: >>>> >>>>> I made a 1-byte file containing just character 0300 (octal), >>>>> copied that using Emacs, and clipman started printing its error >>>>> message over and over again. >>>> >>>> > Anyway, I will fix this somehow, we should not be sending non-UTF8 as=20 > a UTF8_STRING. I've checked in a fix that changes UTF8_STRING to STRING if the data=20 doesn't look like UTF8. However, this might give errors too. The only=20 way to be sure to copy raw binary data correctly is by adding a new type=20 (like application-specific/octet-stream). But if we do that, nobody=20 will be able to get data from Emacs, as such a type is not standard and=20 unsupported. Copy-paste with raw binary data is just something most=20 apps don't do. Please try this, it is hopefully better. Jan D.