From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike FABIAN Newsgroups: gmane.emacs.bugs Subject: bug#20906: 25.0.50; Date: Mon, 05 Oct 2015 12:07:19 +0200 Organization: Red Hat Message-ID: References: <83zj002gt1.fsf@gnu.org> <8337xp25v7.fsf@gnu.org> <83y4fhztdz.fsf@gnu.org> 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 1444039704 2682 80.91.229.3 (5 Oct 2015 10:08:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Oct 2015 10:08:24 +0000 (UTC) Cc: 20906@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 05 12:08:14 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 1Zj2gm-0006Yl-Px for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 12:08:12 +0200 Original-Received: from localhost ([::1]:45117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj2gl-0000FL-V8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 06:08:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj2gi-0000Ex-0O for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 06:08:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zj2gd-0000VF-6g for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 06:08:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj2gd-0000V6-2z for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 06:08:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zj2gc-00010N-Dz for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 06:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mike FABIAN Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Oct 2015 10:08:02 +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.14440396473818 (code B ref 20906); Mon, 05 Oct 2015 10:08:02 +0000 Original-Received: (at 20906) by debbugs.gnu.org; 5 Oct 2015 10:07:27 +0000 Original-Received: from localhost ([127.0.0.1]:54862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zj2g2-0000zU-Ht for submit@debbugs.gnu.org; Mon, 05 Oct 2015 06:07:27 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:37505) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zj2fz-0000zL-DI for 20906@debbugs.gnu.org; Mon, 05 Oct 2015 06:07:24 -0400 Original-Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 6E4D6A0BA8; Mon, 5 Oct 2015 10:07:22 +0000 (UTC) Original-Received: from ari.site (ovpn-116-29.ams2.redhat.com [10.36.116.29]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t95A7KCf003453 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 5 Oct 2015 06:07:21 -0400 Original-Received: from ari.site (localhost [IPv6:::1]) by ari.site (Postfix) with ESMTP id 01E82615B4; Mon, 5 Oct 2015 12:07:19 +0200 (CEST) X-Face: "'; oPz9V1+<,`}1ZuxRv~EiSusWq*{Yjr"Sdvbhq'?q=2R\\6Y9O/,SAE`{J|6I=|w/sQg< rW_N'E3IV6~f8?\l#Es`]S`mv',PY(`8{$$R?+gLu}Qv/Mn>)?uladFjJ@yl!_p_Jh; 5QxlD6zL:?r IXe4FfK$C^mWhh$o`yt; .r.FLZLQOWBt> (Eli Zaretskii's message of "Mon, 05 Oct 2015 10:06:32 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 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:107308 Archived-At: Eli Zaretskii さんはかきました: Eli> The only way to debug this is to track the data we receive from the X Eli> selection in xselect.c all the way to mouse-yank-primary, and see Eli> what's going on there. Can you do that? 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. Is this the right way to debugging this? Continue like this? -- Mike FABIAN ☏ Office: +49-69-365051027, internal 8875027 睡眠不足はいい仕事の敵だ。