From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20906: 25.0.50; Date: Mon, 05 Oct 2015 13:29:51 +0300 Message-ID: <83mvvxzjz4.fsf@gnu.org> References: <83zj002gt1.fsf@gnu.org> <8337xp25v7.fsf@gnu.org> <83y4fhztdz.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1444041035 24485 80.91.229.3 (5 Oct 2015 10:30:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Oct 2015 10:30:35 +0000 (UTC) Cc: 20906@debbugs.gnu.org To: Mike FABIAN Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 05 12:30:19 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zj32A-0004tu-He for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 12:30:18 +0200 Original-Received: from localhost ([::1]:45180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj324-0006OM-Vl for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 06:30:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj322-0006OE-5G for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 06:30:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zj31y-0001F7-5P for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 06:30:10 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj31y-0001EI-2g for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 06:30:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zj31x-0001Wk-4c for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 06:30:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Oct 2015 10:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20906-submit@debbugs.gnu.org id=B20906.14440409985839 (code B ref 20906); Mon, 05 Oct 2015 10:30:04 +0000 Original-Received: (at 20906) by debbugs.gnu.org; 5 Oct 2015 10:29:58 +0000 Original-Received: from localhost ([127.0.0.1]:54881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zj31p-0001W6-JK for submit@debbugs.gnu.org; Mon, 05 Oct 2015 06:29:57 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:34855) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zj31m-0001Vw-FR for 20906@debbugs.gnu.org; Mon, 05 Oct 2015 06:29:55 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NVQ00C00T0GTU00@a-mtaout20.012.net.il> for 20906@debbugs.gnu.org; Mon, 05 Oct 2015 13:29:53 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVQ00CDMT5SR520@a-mtaout20.012.net.il>; Mon, 05 Oct 2015 13:29:53 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107309 Archived-At: > From: Mike FABIAN > Cc: 20906@debbugs.gnu.org > Date: Mon, 05 Oct 2015 12:07:19 +0200 > > In xselect.c near line 1473, there is: > > static Lisp_Object > x_get_window_property_as_lisp_data (struct x_display_info *dpyinfo, > Window window, Atom property, > Lisp_Object target_type, > Atom selection_atom) > { > Atom actual_type; > int actual_format; > unsigned long actual_size; > unsigned char *data = 0; > ptrdiff_t bytes = 0; > Lisp_Object val; > Display *display = dpyinfo->display; > > TRACE0 ("Reading selection data"); > > x_get_window_property (display, window, property, &data, &bytes, > &actual_type, &actual_format, &actual_size); > > And here I see that “data” contains something like this: > > (gdb) p data > $1 = (unsigned char *) 0x1a98cb0 "\\u5b8c\\u4e86" > > I.e. it seems to be wrong in in that function in “data” already. That was my guess. What is the value of 'property', btw? > Is this the right way to debugging this? Continue like this? Could it be that some agent unrelated to Emacs produces these strings? Maybe the selection owner itself (Firefox, right?)? Do other X programs work OK with pasting from the primary selection via the mouse?