From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34969: 26.2; `emacs -Q` unable to copy \200's eight-bit detail buffer Date: Tue, 26 Mar 2019 18:23:08 +0200 Message-ID: <83y351li4z.fsf@gnu.org> References: <83pnqgnvpj.fsf@gnu.org> <83o95yn8xb.fsf@gnu.org> <8C127EF5-C029-4808-81FE-86F75DDAE190@scratch.space> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="201796"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34969@debbugs.gnu.org To: Van L Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 26 17:24:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8os4-000qNs-P0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Mar 2019 17:24:16 +0100 Original-Received: from localhost ([127.0.0.1]:34711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8os3-0006SZ-PM for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Mar 2019 12:24:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8ors-0006Rk-Ms for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 12:24:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8orq-0001mA-PF for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 12:24:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46922) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h8orq-0001lp-EQ for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 12:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h8orq-0007mw-9X for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 12:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Mar 2019 16:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34969 X-GNU-PR-Package: emacs Original-Received: via spool by 34969-submit@debbugs.gnu.org id=B34969.155361739029877 (code B ref 34969); Tue, 26 Mar 2019 16:24:02 +0000 Original-Received: (at 34969) by debbugs.gnu.org; 26 Mar 2019 16:23:10 +0000 Original-Received: from localhost ([127.0.0.1]:60466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8oqz-0007ln-Lr for submit@debbugs.gnu.org; Tue, 26 Mar 2019 12:23:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8oqy-0007lZ-5U for 34969@debbugs.gnu.org; Tue, 26 Mar 2019 12:23:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8oqr-00010P-Tk; Tue, 26 Mar 2019 12:23:02 -0400 Original-Received: from [176.228.60.248] (port=3724 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h8oqr-0003ML-5M; Tue, 26 Mar 2019 12:23:01 -0400 In-reply-to: <8C127EF5-C029-4808-81FE-86F75DDAE190@scratch.space> (message from Van L on Tue, 26 Mar 2019 10:46:12 +1100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156822 Archived-At: > From: Van L > Date: Tue, 26 Mar 2019 10:46:12 +1100 > Cc: 34969@debbugs.gnu.org > > Copy and paste within the one Emacs is being interfered with if what you suggest is true. When you paste, and there's stuff in the clipboard, Emacs checks whether Emacs itself is the owner of that stuff. If it is, we yank from the kill ring instead of accessing the clipboard, because yanking is both faster and doesn't need any decoding. So I'm guessing that some software on your system takes ownership of the text in the clipboard, and Emacs then accesses that via the window-system selections, and fails to decode raw bytes due to character encoding issues. > > Section A just gives a single sequence, but it doesn't tell how to do > > that several times, i.e. what exactly is repeated N times. > > a. run Emacs > b. goto *scratch* buffer > c. create new frame > d. lookup keybindings for *scratch* buffer > e. find `self` > f. for the two variants of \200 copy and paste details buffer to *scratch* > > Repeat the above a-f steps 7 times as listed in the bug-report for those platforms detailed. We are miscommunicating, I think. Each one of the 7 instances in your report says something like this, for example: > : 4 > : [has problem the second time] > : GNU Emacs 26.2 (build 1, x86_64-apple-darwin15.6.0, X toolkit) > : of 2019-03-21 I'm asking what exactly does "second time" mean here. Did you start this version of Emacs twice, or did you start it only once and performed the steps b-f above twice one after the other in the same Emacs session? > >>> What happens if you set interprogram-cut-function and > >>> interprogram-paste-function to nil? > >> > >> Will do the next time I get a chance. > > > > If I'm right, the problem will disappear. > > I am inside the one Emacs's copy and paste, and not going out of the Emacs. I don't think I understand what this alludes to. Is it a response to my sentence that starts with "If I'm right"? > >>> (And why do your symlink targets include \200 characters?) > >> > >> I used `C-x 8 RET horizontal ellipsis` the email program was unable to process. > >> The \200 was what the email program used as substitute. > > > > Strange email program: \200 is an unassigned codepoint. > > That was the emacs-bug-report mechanism in Emacs that did that. If you sent the report via mailclient, then this is probably the same problem which causes the issue with pasting that we are discussing.